search: Use a HdyColumn
This better adapts the panel's size to the window's size, allowing it to look good on both large and narrow windows.
This commit is contained in:
parent
587ca5ce98
commit
7679f29a7a
1 changed files with 7 additions and 26 deletions
|
@ -9,38 +9,19 @@
|
||||||
<object class="GtkScrolledWindow" id="search_vbox">
|
<object class="GtkScrolledWindow" id="search_vbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hscrollbar_policy">never</property>
|
<property name="hscrollbar_policy">never</property>
|
||||||
<property name="min_content_height">450</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="HdyColumn">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="maximum_width">600</property>
|
||||||
|
<property name="linear_growth_width">400</property>
|
||||||
<!-- Stub boxes to make the content cover 1/3 of the screen -->
|
<property name="margin_top">32</property>
|
||||||
<child>
|
<property name="margin_bottom">32</property>
|
||||||
<object class="GtkBox">
|
<property name="margin_start">12</property>
|
||||||
<property name="visible">True</property>
|
<property name="margin_end">12</property>
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="pack_type">end</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<!-- Content -->
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="margin">32</property>
|
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkFrame" id="search_frame">
|
<object class="GtkFrame" id="search_frame">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue