about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-17 22:04:31 +0200
committerGitHub <noreply@github.com>2019-08-17 22:04:31 +0200
commitcd660d374adc9394aaeea22d5d41b29535d8a4c2 (patch)
treeb9ce09efea79cf552f918ba127af148a41ddabfb /app/javascript
parent5d8ee24cd5d82d41a6914ee9982c38cc18d859b4 (diff)
Fix hashtag autosuggestions line breaks for long suggestions (#11588)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/styles/mastodon/components.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 6264c3df8..59d1d59f3 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -503,9 +503,21 @@
   .autosuggest-hashtag {
     justify-content: space-between;
 
+    &__name {
+      flex: 1 1 auto;
+      overflow: hidden;
+      text-overflow: ellipsis;
+    }
+
     strong {
       font-weight: 500;
     }
+
+    &__uses {
+      flex: 0 0 auto;
+      width: 80px;
+      text-align: right;
+    }
   }
 
   .autosuggest-account-icon,