]> cat aescling's git repositories - mastodon.git/commitdiff
Fix checkmark on interaction buttons with larger fonts (#1799)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 16 Jun 2022 13:37:59 +0000 (15:37 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:51 +0000 (00:27 -0400)
Fixes #1796

app/javascript/flavours/glitch/components/icon_button.js
app/javascript/flavours/glitch/styles/accessibility.scss

index 3999409cdf9ebb60067f2710abc1f4c97ceb8671..9a05badd0357814c572869848447cab12b5c2b92 100644 (file)
@@ -86,13 +86,13 @@ export default class IconButton extends React.PureComponent {
   render () {
     let style = {
       fontSize: `${this.props.size}px`,
-      height: `${this.props.size * 1.28571429}px`,
+      height: '1.28571429em',
       lineHeight: `${this.props.size}px`,
       ...this.props.style,
       ...(this.props.active ? this.props.activeStyle : {}),
     };
     if (!this.props.label) {
-      style.width = `${this.props.size * 1.28571429}px`;
+      style.width = '1.28571429em';
     } else {
       style.textAlign = 'left';
     }
index 96e20f8393e1275fb41593f75a631f057614aee2..9b36bfd8ddff64cbf4e6ca774c71163f59b2264c 100644 (file)
@@ -22,8 +22,8 @@ $emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
     content: "\F00C";
     font-size: 50%;
     font-family: FontAwesome;
-    right: -5px;
-    top: -4px;
+    right: -0.55em;
+    top: -0.44em;
   }
 }