From f32b9bab993be48c7ff63932263f3346f148d84b Mon Sep 17 00:00:00 2001 From: Germain Date: Fri, 7 Jul 2023 08:24:48 +0100 Subject: [PATCH] Fix room tile text clipping (#11196) --- res/css/views/rooms/_RoomTile.pcss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/res/css/views/rooms/_RoomTile.pcss b/res/css/views/rooms/_RoomTile.pcss index 78eb6f4bf1..be7f8f7562 100644 --- a/res/css/views/rooms/_RoomTile.pcss +++ b/res/css/views/rooms/_RoomTile.pcss @@ -60,7 +60,9 @@ limitations under the License. color: $secondary-content; display: flex; gap: $spacing-4; - line-height: 1.2; + line-height: 1.25; + position: relative; + top: -1px; } .mx_RoomTile_title, @@ -72,7 +74,7 @@ limitations under the License. .mx_RoomTile_title { font: var(--cpd-font-body-md-regular); - line-height: 1; + line-height: 1.25; &.mx_RoomTile_titleHasUnreadEvents { font-weight: var(--cpd-font-weight-semibold); @@ -81,7 +83,6 @@ limitations under the License. .mx_RoomTile_titleWithSubtitle { margin-top: -2px; /* shift the title up a bit more */ - margin-bottom: 1px; } }