Skip to content

Commit

Permalink
window: Use AdwClamp for the search bar
Browse files Browse the repository at this point in the history
This lets us to clamp the search bar to a maximum size,
allowing us to have a wider yet natural width.
  • Loading branch information
TheEvilSkeleton committed Jan 17, 2025
1 parent 3eaac21 commit 8efee0e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bottles/frontend/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,15 @@ template $BottlesWindow: Adw.ApplicationWindow {
}

[top]
SearchBar search_bar {
SearchEntry entry_search {
placeholder-text: _("Search your bottles…");
}
Adw.Clamp {
maximum-size: 400;

child: SearchBar search_bar {
SearchEntry entry_search {
hexpand: true;
placeholder-text: _("Search your bottles…");
}
};
}

content: Adw.ViewStack stack_main {
Expand Down

0 comments on commit 8efee0e

Please sign in to comment.