Skip to content

Commit 44f4627

Browse files
committed
Fix the position of 'Attachments' in the sidebar
It fixes #20893.
1 parent 0ee557c commit 44f4627

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

web/views_manager.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
background-color: var(--header-bg);
253253

254254
.viewsManagerLabel {
255-
flex: 0;
255+
flex: 1 1 auto;
256256
color: var(--text-color);
257257
text-align: center;
258258
height: fit-content;
@@ -275,6 +275,17 @@
275275
width: auto;
276276
padding: 12px 16px 12px 8px;
277277

278+
&:not(:has(#viewsManagerHeaderLabel ~ button:not([hidden])))::after {
279+
/* If one of the following buttons is visible, hide the placeholder
280+
button to avoid unnecessary space in the header. */
281+
282+
content: "";
283+
flex: 0 0 auto;
284+
width: 32px;
285+
height: 32px;
286+
pointer-events: none;
287+
}
288+
278289
#viewsManagerSelector {
279290
width: 48px;
280291
height: 32px;

0 commit comments

Comments
 (0)