inbox: Avoid extra margin from folders hidden by filters.

If all channels in a folder are muted, then this margin is present
in "Standard view", without there being any folder present.

Fixed by only applying margin if the folder has any header or rows
that are not hidden by filters.

This is an alternative fix to #35962 which was reverted in #36123.
This commit is contained in:
Aman Agrawal
2025-09-26 16:15:59 +05:30
committed by Tim Abbott
parent 19880797db
commit f2a11c5858

View File

@@ -639,10 +639,14 @@
}
.inbox-folder-components {
margin-bottom: 0.5em;
border-radius: 5px;
border: 0.5px solid hsl(0deg 0% 0% / 13%);
overflow: hidden;
&:has(.inbox-row:not(.hidden_by_filters)),
&:has(.inbox-header:not(.hidden_by_filters)) {
margin-bottom: 0.5em;
}
}
.inbox-folder.inbox-collapsed-state,