diff --git a/src/app/browser/window/tab/item/page/search.rs b/src/app/browser/window/tab/item/page/search.rs index 63292ef5..b99785ea 100644 --- a/src/app/browser/window/tab/item/page/search.rs +++ b/src/app/browser/window/tab/item/page/search.rs @@ -33,6 +33,7 @@ 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 dbb6a622..1b30d239 100644 --- a/src/app/browser/window/tab/item/page/search/close.rs +++ b/src/app/browser/window/tab/item/page/search/close.rs @@ -4,11 +4,12 @@ const MARGIN: i32 = 6; pub fn new() -> Button { Button::builder() + .halign(Align::End) .icon_name("window-close-symbolic") .margin_end(MARGIN) .margin_start(MARGIN) + .tooltip_text("Close find bar") .valign(Align::Center) .vexpand(false) - .tooltip_text("Close find bar") .build() } diff --git a/src/app/browser/window/tab/item/page/search/form/input.rs b/src/app/browser/window/tab/item/page/search/form/input.rs index 0f9e4c88..db5e782a 100644 --- a/src/app/browser/window/tab/item/page/search/form/input.rs +++ b/src/app/browser/window/tab/item/page/search/form/input.rs @@ -4,6 +4,7 @@ use gtk::{ }; const MARGIN: i32 = 6; +const WIDTH_REQUEST: i32 = 280; pub struct Input { pub entry: Entry, @@ -16,7 +17,6 @@ impl Input { pub fn new() -> Self { // Init widget let entry = Entry::builder() - .hexpand(true) .margin_bottom(MARGIN) .margin_end(MARGIN) .margin_start(MARGIN) @@ -27,6 +27,7 @@ impl Input { .primary_icon_sensitive(false) .valign(Align::Center) .vexpand(false) + .width_request(WIDTH_REQUEST) // | .hexpand(true) .build(); // Connect events