forked from AuroraMiddleware/gtk
emojichooser: Allow the section buttons to wrap
Use a flowbox instead of a horizontal box for the section buttons at the bottom, so they can wrap and allow for narrow layout. We also need to stop giving the scrolledwindow a content height, so it can shrink to make room for more rows of section buttons.
This commit is contained in:
parent
102b74f9eb
commit
2ea4574caf
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface domain="gtk40">
|
||||
<template class="GtkEmojiChooser" parent="GtkPopover">
|
||||
<property name="height-request">410</property>
|
||||
<style>
|
||||
<class name="emoji-picker"/>
|
||||
</style>
|
||||
@ -33,7 +34,6 @@
|
||||
<object class="GtkScrolledWindow" id="scrolled_window">
|
||||
<property name="vexpand">1</property>
|
||||
<property name="hscrollbar-policy">never</property>
|
||||
<property name="min-content-height">250</property>
|
||||
<style>
|
||||
<class name="view"/>
|
||||
</style>
|
||||
@ -217,7 +217,9 @@
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<object class="GtkFlowBox">
|
||||
<property name="min-children-per-line">3</property>
|
||||
<property name="max-children-per-line">10</property>
|
||||
<style>
|
||||
<class name="emoji-toolbar"/>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user