File tree 2 files changed +16
-12
lines changed
javascripts/oxalis/view/action-bar
2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -88,20 +88,20 @@ export const ResetLayoutItem = (props: ResetLayoutItemProps) => {
88
88
}
89
89
>
90
90
< span style = { { minWidth : "100%" , minHeight : "auto" , display : "inline-block" } } >
91
- < div className = "inline-with-margin" >
91
+ < div className = "inline-with-margin full-width" onClick = { ( ) => onSelectLayout ( layout ) } >
92
92
{ layout }
93
- { isSelectedLayout ? (
94
- < Icon type = "check" className = "sub-menu-item-icon" theme = "outlined" />
95
- ) : (
96
- < Tooltip placement = "top" title = "Remove this layout" >
97
- < Icon
98
- type = "delete"
99
- className = "clickable-icon sub-menu-item-icon"
100
- onClick = { ( ) => onDeleteLayout ( layout ) }
101
- />
102
- </ Tooltip >
103
- ) }
104
93
</ div >
94
+ { isSelectedLayout ? (
95
+ < Icon type = "check" className = "sub-menu-item-icon" theme = "outlined" />
96
+ ) : (
97
+ < Tooltip placement = "top" title = "Remove this layout" >
98
+ < Icon
99
+ type = "delete"
100
+ className = "clickable-icon sub-menu-item-icon"
101
+ onClick = { ( ) => onDeleteLayout ( layout ) }
102
+ />
103
+ </ Tooltip >
104
+ ) }
105
105
</ span >
106
106
</ Menu . Item >
107
107
) ;
Original file line number Diff line number Diff line change 35
35
margin-right : 36px ;
36
36
}
37
37
38
+ .full-width {
39
+ width : 100% ;
40
+ }
41
+
38
42
.bullet-point-less-li {
39
43
list-style-type : none ;
40
44
}
You can’t perform that action at this time.
0 commit comments