mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
wrap search in clamp
This commit is contained in:
parent
957e56cc3e
commit
2a5d0a508b
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue