mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
wrap search in clamp
This commit is contained in:
parent
957e56cc3e
commit
2a5d0a508b
@ -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({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user