File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,14 @@ pub fn context_menu<'a>(
295
295
text_color : Some ( component. on . into ( ) ) ,
296
296
background : Some ( Background :: Color ( component. base . into ( ) ) ) ,
297
297
border : Border {
298
- radius : 8.0 . into ( ) ,
298
+ radius : cosmic . radius_s ( ) . into ( ) ,
299
299
width : 1.0 ,
300
300
color : component. divider . into ( ) ,
301
301
} ,
302
302
..Default :: default ( )
303
303
}
304
304
} )
305
- . width ( Length :: Fixed ( 260 .0) )
305
+ . width ( Length :: Fixed ( 280 .0) )
306
306
. into ( )
307
307
}
308
308
@@ -645,7 +645,7 @@ pub fn location_context_menu<'a>(ancestor_index: usize) -> Element<'a, tab::Mess
645
645
text_color : Some ( component. on . into ( ) ) ,
646
646
background : Some ( Background :: Color ( component. base . into ( ) ) ) ,
647
647
border : Border {
648
- radius : 8.0 . into ( ) ,
648
+ radius : cosmic . radius_s ( ) . into ( ) ,
649
649
width : 1.0 ,
650
650
color : component. divider . into ( ) ,
651
651
} ,
Original file line number Diff line number Diff line change @@ -3020,10 +3020,7 @@ impl Tab {
3020
3020
//TODO: use widget::image::viewer, when its zoom can be reset
3021
3021
widget:: image ( widget:: image:: Handle :: from_path ( path) ) ,
3022
3022
)
3023
- . align_x ( Alignment :: Center )
3024
- . align_y ( Alignment :: Center )
3025
- . width ( Length :: Fill )
3026
- . height ( Length :: Fill )
3023
+ . center ( Length :: Fill )
3027
3024
. into ( ) ,
3028
3025
) ;
3029
3026
} else {
@@ -3032,10 +3029,7 @@ impl Tab {
3032
3029
//TODO: use widget::image::viewer, when its zoom can be reset
3033
3030
widget:: image ( handle. clone ( ) ) ,
3034
3031
)
3035
- . align_x ( Alignment :: Center )
3036
- . align_y ( Alignment :: Center )
3037
- . width ( Length :: Fill )
3038
- . height ( Length :: Fill )
3032
+ . center ( Length :: Fill )
3039
3033
. into ( ) ,
3040
3034
) ;
3041
3035
}
You can’t perform that action at this time.
0 commit comments