wrap search in clamp

This commit is contained in:
yggverse 2024-12-16 14:38:28 +02:00
parent 957e56cc3e
commit 2a5d0a508b

View File

@ -7,6 +7,7 @@ use search::Search;
use source::Source; use source::Source;
use super::{TabAction, WindowAction}; use super::{TabAction, WindowAction};
use adw::Clamp;
use gtk::{ use gtk::{
glib::Uri, glib::Uri,
prelude::{BoxExt, ButtonExt, TextViewExt, WidgetExt}, prelude::{BoxExt, ButtonExt, TextViewExt, WidgetExt},
@ -45,7 +46,13 @@ impl Text {
.build(), .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 // Connect events
window_action.find.connect_activate({ window_action.find.connect_activate({