@@ -130,11 +130,13 @@ function RecentPage() {
130
130
} ) ;
131
131
box . hook ( recent , ( self ) => {
132
132
Utils . idle ( ( ) => {
133
- const flow = Widget . FlowBox ( ) ;
133
+ const flow = Widget . FlowBox ( {
134
+ homogeneous : true
135
+ } ) ;
136
+ flow . set_min_children_per_line ( 5 ) ;
137
+ flow . set_max_children_per_line ( 25 ) ;
134
138
for ( const emojiKey in recent . value ) {
135
139
let emoji = emojiList [ emojiKey ] ;
136
- flow . set_min_children_per_line ( 5 ) ;
137
- flow . set_max_children_per_line ( 25 ) ;
138
140
flow . add ( Widget . Button ( {
139
141
class_name : "standard_icon_button emoji" ,
140
142
label : emoji ,
@@ -170,11 +172,13 @@ function SearchPage(search: VType<string>) {
170
172
Utils . idle ( ( ) => {
171
173
if ( search . value . length == 0 )
172
174
return
173
- const flow = Widget . FlowBox ( ) ;
175
+ const flow = Widget . FlowBox ( {
176
+ homogeneous : true
177
+ } ) ;
178
+ flow . set_min_children_per_line ( 5 ) ;
179
+ flow . set_max_children_per_line ( 25 ) ;
174
180
for ( const emojiKey in emojiList ) {
175
181
let emoji = emojiList [ emojiKey ] ;
176
- flow . set_min_children_per_line ( 5 ) ;
177
- flow . set_max_children_per_line ( 25 ) ;
178
182
if ( searchString ( emojiKey , search . value ) )
179
183
flow . add ( Widget . Button ( {
180
184
class_name : "standard_icon_button emoji" ,
@@ -215,12 +219,14 @@ function Page(category) {
215
219
hpack : "start" ,
216
220
} ) , false , false , 0
217
221
)
218
- const flow = Widget . FlowBox ( ) ;
222
+ const flow = Widget . FlowBox ( {
223
+ homogeneous : true
224
+ } ) ;
225
+ flow . set_min_children_per_line ( 5 ) ;
226
+ flow . set_max_children_per_line ( 25 ) ;
219
227
let emojis = category [ subcategoryKey ] ;
220
228
for ( let emojiKey in emojis ) {
221
229
let emoji = emojis [ emojiKey ] ;
222
- flow . set_min_children_per_line ( 5 ) ;
223
- flow . set_max_children_per_line ( 25 ) ;
224
230
flow . add ( Widget . Button ( {
225
231
class_name : "standard_icon_button emoji" ,
226
232
label : emoji ,
0 commit comments