From 44f462760091a2110eab2e2ae3da9ff5eece3cb9 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Mon, 16 Mar 2026 15:28:15 +0100 Subject: [PATCH] Fix the position of 'Attachments' in the sidebar It fixes #20893. --- web/views_manager.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/views_manager.css b/web/views_manager.css index 34df390f2..a5b3ad029 100644 --- a/web/views_manager.css +++ b/web/views_manager.css @@ -252,7 +252,7 @@ background-color: var(--header-bg); .viewsManagerLabel { - flex: 0; + flex: 1 1 auto; color: var(--text-color); text-align: center; height: fit-content; @@ -275,6 +275,17 @@ width: auto; padding: 12px 16px 12px 8px; + &:not(:has(#viewsManagerHeaderLabel ~ button:not([hidden])))::after { + /* If one of the following buttons is visible, hide the placeholder + button to avoid unnecessary space in the header. */ + + content: ""; + flex: 0 0 auto; + width: 32px; + height: 32px; + pointer-events: none; + } + #viewsManagerSelector { width: 48px; height: 32px;