Fix regressions in icon buttons in web UI (#14915)
This commit is contained in:
@ -116,6 +116,7 @@ export default class IconButton extends React.PureComponent {
|
||||
activate,
|
||||
deactivate,
|
||||
overlayed: overlay,
|
||||
'icon-button--with-counter': typeof counter !== 'undefined',
|
||||
});
|
||||
|
||||
if (typeof counter !== 'undefined') {
|
||||
|
@ -163,8 +163,7 @@
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
color: $action-button-color;
|
||||
border: 0;
|
||||
@ -173,6 +172,7 @@
|
||||
cursor: pointer;
|
||||
transition: all 100ms ease-in;
|
||||
transition-property: background-color, color;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
@ -247,6 +247,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&--with-counter {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
&__counter {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
@ -1152,6 +1158,10 @@
|
||||
|
||||
.status__action-bar-button {
|
||||
margin-right: 18px;
|
||||
|
||||
&.icon-button--with-counter {
|
||||
margin-right: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.status__action-bar-dropdown {
|
||||
|
Reference in New Issue
Block a user