From 2a5d0a508b549475b5140dbb832ed1c38a35c1cf Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 14:38:28 +0200 Subject: [PATCH] wrap search in clamp --- src/app/browser/window/tab/item/page/content/text.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/content/text.rs b/src/app/browser/window/tab/item/page/content/text.rs index b32f813b..ea76f3c5 100644 --- a/src/app/browser/window/tab/item/page/content/text.rs +++ b/src/app/browser/window/tab/item/page/content/text.rs @@ -7,6 +7,7 @@ use search::Search; use source::Source; use super::{TabAction, WindowAction}; +use adw::Clamp; use gtk::{ glib::Uri, prelude::{BoxExt, ButtonExt, TextViewExt, WidgetExt}, @@ -45,7 +46,13 @@ impl Text { .build(), ); - g_box.append(&search.g_box); + g_box.append( + &Clamp::builder() + .child(&search.g_box) + .css_classes(["osd"]) + .maximum_size(800) + .build(), + ); // Connect events window_action.find.connect_activate({