diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-10-04 15:02:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 15:02:36 +0200 |
commit | a549415868fe23e0afaf258c17afafac117d0163 (patch) | |
tree | e7132d73c4130d02c94d6fc86b2bdf6aa6e40183 /app/javascript | |
parent | 16b776c68f8ce40c9e31b00d0ca8e5844b237ed4 (diff) |
Fix regressions in icon buttons in web UI (#14915)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 1 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 14 |
2 files changed, 13 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index 7f83dc1b9..7ec39198a 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -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') { diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index a20265bb9..ec49ae120 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -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 { |