From 4783e03871d289ffb398aea048d73d75c964b9c3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 8 Oct 2020 15:21:16 +0200 Subject: [PATCH] fix room header margin issue with hidden back button --- src/ui/web/css/themes/element/theme.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/web/css/themes/element/theme.css b/src/ui/web/css/themes/element/theme.css index f3440ef5..0bf46aef 100644 --- a/src/ui/web/css/themes/element/theme.css +++ b/src/ui/web/css/themes/element/theme.css @@ -364,8 +364,11 @@ a { font-weight: 600; } -.RoomHeader > :not(:first-child) { - margin-left: 8px; +.RoomHeader > :not(:last-child) { + /* use margin-right because the first item, + button.back might be hidden and then we don't + want a margin-left on the second item*/ + margin-right: 8px; } button.back {