@@ -38,9 +38,15 @@ impl Snapshots {
38
38
. iter ( )
39
39
. map ( |snapshot| {
40
40
widget:: settings:: item_row ( vec ! [
41
- widget:: text( & snapshot. name) . width( Length :: Fill ) . into( ) ,
42
- widget:: text( snapshot. kind( ) ) . width( Length :: Fill ) . into( ) ,
43
- widget:: text( snapshot. created( ) ) . width( Length :: Fill ) . into( ) ,
41
+ widget:: text( & snapshot. name)
42
+ . width( Length :: FillPortion ( 2 ) )
43
+ . into( ) ,
44
+ widget:: text( snapshot. kind( ) )
45
+ . width( Length :: FillPortion ( 1 ) )
46
+ . into( ) ,
47
+ widget:: text( snapshot. created( ) )
48
+ . width( Length :: FillPortion ( 1 ) )
49
+ . into( ) ,
44
50
widget:: row( )
45
51
. push( widget:: tooltip(
46
52
widget:: button:: icon( icons:: get_handle(
@@ -61,7 +67,7 @@ impl Snapshots {
61
67
) )
62
68
. align_y( cosmic:: iced:: Alignment :: Center )
63
69
. spacing( spacing. space_xxs)
64
- . width( Length :: Fill )
70
+ . width( Length :: FillPortion ( 1 ) )
65
71
. into( ) ,
66
72
] )
67
73
. align_y ( cosmic:: iced:: Alignment :: Center )
@@ -84,10 +90,10 @@ impl Snapshots {
84
90
} else {
85
91
Some (
86
92
widget:: row ( )
87
- . push ( heading_item ( fl ! ( "name" ) , Length :: Fill ) )
88
- . push ( heading_item ( fl ! ( "type" ) , Length :: Fill ) )
89
- . push ( heading_item ( fl ! ( "created" ) , Length :: Fill ) )
90
- . push ( heading_item ( fl ! ( "actions" ) , Length :: Fill ) )
93
+ . push ( heading_item ( fl ! ( "name" ) , Length :: FillPortion ( 2 ) ) )
94
+ . push ( heading_item ( fl ! ( "type" ) , Length :: FillPortion ( 1 ) ) )
95
+ . push ( heading_item ( fl ! ( "created" ) , Length :: FillPortion ( 1 ) ) )
96
+ . push ( heading_item ( fl ! ( "actions" ) , Length :: FillPortion ( 1 ) ) )
91
97
. padding ( [ 0 , spacing. space_m ] ) ,
92
98
)
93
99
} ;
0 commit comments