From 3942e6556fcb0bb4c7cb7eedb94e07cb34f94652 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 19 Dec 2024 19:06:47 +0200 Subject: [PATCH] fix search bar horizontal expansion --- src/app/browser/window/tab/item/page/search.rs | 1 - src/app/browser/window/tab/item/page/search/close.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/search.rs b/src/app/browser/window/tab/item/page/search.rs index b99785ea..63292ef5 100644 --- a/src/app/browser/window/tab/item/page/search.rs +++ b/src/app/browser/window/tab/item/page/search.rs @@ -33,7 +33,6 @@ impl Search { // Init main container let g_box = Box::builder() - .homogeneous(true) .orientation(Orientation::Horizontal) .valign(Align::Center) .vexpand(false) diff --git a/src/app/browser/window/tab/item/page/search/close.rs b/src/app/browser/window/tab/item/page/search/close.rs index 1b30d239..17149443 100644 --- a/src/app/browser/window/tab/item/page/search/close.rs +++ b/src/app/browser/window/tab/item/page/search/close.rs @@ -5,6 +5,7 @@ const MARGIN: i32 = 6; pub fn new() -> Button { Button::builder() .halign(Align::End) + .hexpand(true) .icon_name("window-close-symbolic") .margin_end(MARGIN) .margin_start(MARGIN)