From 2e7ccf6e7a44f9854cd914c9306389828820c5e4 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Wed, 29 Apr 2020 10:57:35 +0100 Subject: [PATCH] Fix pill vertical align --- res/css/views/elements/_RichText.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/res/css/views/elements/_RichText.scss b/res/css/views/elements/_RichText.scss index 453cf4c7f9..d60282695c 100644 --- a/res/css/views/elements/_RichText.scss +++ b/res/css/views/elements/_RichText.scss @@ -18,13 +18,14 @@ a.mx_Pill { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; - vertical-align: text-bottom; max-width: calc(100% - 1ch); } .mx_Pill { padding: $font-1px; padding-right: 0.4em; + vertical-align: text-top; + line-height: $font-17px; } /* More specific to override `.markdown-body a` color */