From 0e43f3c015a1f5a5f48667e96765b621b7617022 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 17 Aug 2022 16:13:04 +0100 Subject: [PATCH] Wrap long space names (#9201) --- res/css/structures/_SpacePanel.pcss | 5 +++++ res/css/structures/_SpaceRoomView.pcss | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/res/css/structures/_SpacePanel.pcss b/res/css/structures/_SpacePanel.pcss index 6517aec5e1..e62a6c90a1 100644 --- a/res/css/structures/_SpacePanel.pcss +++ b/res/css/structures/_SpacePanel.pcss @@ -379,11 +379,16 @@ $activeBorderColor: $primary-content; } .mx_SpacePanel_contextMenu { + max-width: 360px; + .mx_SpacePanel_contextMenu_header { margin: 12px 16px 12px; font-weight: $font-semi-bold; font-size: $font-15px; line-height: $font-18px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .mx_SpacePanel_iconHome::before { diff --git a/res/css/structures/_SpaceRoomView.pcss b/res/css/structures/_SpaceRoomView.pcss index b39f57cbb0..2664549b17 100644 --- a/res/css/structures/_SpaceRoomView.pcss +++ b/res/css/structures/_SpaceRoomView.pcss @@ -177,6 +177,10 @@ $SpaceRoomViewInnerWidth: 428px; h1 { display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 100%; } }