Skip to content

Commit c9b2412

Browse files
window: Use AdwClamp for the search bar
This lets us to clamp the search bar to a maximum size, allowing us to have a wider yet natural width.
1 parent a76d28f commit c9b2412

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

bottles/frontend/window.blp

+9-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ template $BottlesWindow: Adw.ApplicationWindow {
6363
}
6464

6565
[top]
66-
SearchBar search_bar {
67-
SearchEntry entry_search {
68-
placeholder-text: _("Search your bottles…");
69-
}
66+
Adw.Clamp {
67+
maximum-size: 400;
68+
69+
child: SearchBar search_bar {
70+
SearchEntry entry_search {
71+
hexpand: true;
72+
placeholder-text: _("Search your bottles…");
73+
}
74+
};
7075
}
7176

7277
content: Adw.ViewStack stack_main {

0 commit comments

Comments
 (0)