1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

make expanding icon smaller and not focusable

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-11-16 09:44:18 -05:00
parent e3193fe897
commit 3650dac09b
3 changed files with 11 additions and 8 deletions

View File

@ -27,8 +27,8 @@
transform: scaleX(-1);
position: absolute;
z-index: 1;
right: -10px;
bottom: -10px;
right: -6px;
bottom: -6px;
color: $textColorAccent;
background-color: $halfGray;
border-radius: 50%;

View File

@ -37,11 +37,14 @@ export class Badge extends React.Component<BadgeProps> {
return null
}
if (this.isExpanded) {
return <Icon className="expansionIcon" size={20} material="close_fullscreen" onClick={this.onClick} />
}
return <Icon className="expansionIcon" size={20} material="open_in_full" onClick={this.onClick} />
const material = this.isExpanded ? "close_fullscreen" : "open_in_full"
return <Icon
className="expansionIcon"
size={12}
material={material}
focusable={false}
onClick={this.onClick}
/>
}
render() {

View File

@ -132,4 +132,4 @@
@extend .active;
}
}
}
}