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 @@ -3078,10 +3078,7 @@ impl Tab {
3078
3078
//TODO: use widget::image::viewer, when its zoom can be reset
3079
3079
widget:: image ( widget:: image:: Handle :: from_path ( path) ) ,
3080
3080
)
3081
- . align_x ( Alignment :: Center )
3082
- . align_y ( Alignment :: Center )
3083
- . width ( Length :: Fill )
3084
- . height ( Length :: Fill )
3081
+ . center ( Length :: Fill )
3085
3082
. into ( ) ,
3086
3083
) ;
3087
3084
} else {
@@ -3090,10 +3087,7 @@ impl Tab {
3090
3087
//TODO: use widget::image::viewer, when its zoom can be reset
3091
3088
widget:: image ( handle. clone ( ) ) ,
3092
3089
)
3093
- . align_x ( Alignment :: Center )
3094
- . align_y ( Alignment :: Center )
3095
- . width ( Length :: Fill )
3096
- . height ( Length :: Fill )
3090
+ . center ( Length :: Fill )
3097
3091
. into ( ) ,
3098
3092
) ;
3099
3093
}
You can’t perform that action at this time.
0 commit comments