@@ -1205,17 +1205,17 @@ impl cosmic::Application for CosmicAppLibrary {
1205
1205
container(
1206
1206
row![
1207
1207
button:: custom(
1208
- text( CANCEL . to_string( ) )
1209
- . size ( 14.0 )
1208
+ container ( text( CANCEL . to_string( ) ) . size ( 14.0 ) )
1209
+ . width ( Length :: Shrink )
1210
1210
. align_x( Horizontal :: Center )
1211
1211
. width( Length :: Fill )
1212
1212
)
1213
1213
. on_press( Message :: CancelNewGroup )
1214
1214
. padding( [ space_xxs, space_s] )
1215
1215
. width( 142 ) ,
1216
1216
button:: custom(
1217
- text( SAVE . to_string( ) )
1218
- . size ( 14.0 )
1217
+ container ( text( SAVE . to_string( ) ) . size ( 14.0 ) )
1218
+ . width ( Length :: Shrink )
1219
1219
. align_x( Horizontal :: Center )
1220
1220
. width( Length :: Fill )
1221
1221
)
@@ -1273,15 +1273,17 @@ impl cosmic::Application for CosmicAppLibrary {
1273
1273
container(
1274
1274
row![
1275
1275
button:: custom(
1276
- text( CANCEL . as_str( ) )
1276
+ container( text( CANCEL . to_string( ) ) . size( 14.0 ) )
1277
+ . width( Length :: Shrink )
1277
1278
. align_x( Horizontal :: Center )
1278
1279
. width( Length :: Fill )
1279
1280
)
1280
1281
. on_press( Message :: CancelDelete )
1281
1282
. padding( [ space_xxs, space_m] )
1282
1283
. width( 142 ) ,
1283
1284
button:: custom(
1284
- text( fl!( "delete" ) )
1285
+ container( text( fl!( "delete" ) ) . size( 14.0 ) )
1286
+ . width( Length :: Shrink )
1285
1287
. align_x( Horizontal :: Center )
1286
1288
. width( Length :: Fill )
1287
1289
)
@@ -1489,9 +1491,7 @@ impl cosmic::Application for CosmicAppLibrary {
1489
1491
. height( Length :: Fixed ( group_icon_size) )
1490
1492
)
1491
1493
. padding( space_xxs) ,
1492
- text( fl!( "add-group" ) )
1493
- . size( 14.0 )
1494
- . align_x( Horizontal :: Center )
1494
+ text( fl!( "add-group" ) ) . size( 14.0 ) . width( Length :: Shrink )
1495
1495
]
1496
1496
. align_x ( Alignment :: Center )
1497
1497
. width ( Length :: Fill ) ,
@@ -1523,7 +1523,7 @@ impl cosmic::Application for CosmicAppLibrary {
1523
1523
. height( Length :: Fixed ( group_icon_size) )
1524
1524
)
1525
1525
. padding( space_xxs) ,
1526
- text( group. name( ) ) . align_x ( Horizontal :: Center ) . size ( 14 )
1526
+ text( group. name( ) ) . size ( 14 ) . width ( Length :: Shrink )
1527
1527
]
1528
1528
. align_x ( Alignment :: Center )
1529
1529
. width ( Length :: Fill ) ,
0 commit comments