From 39b560e61162a56f33e23e98c708a197a948b328 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Fri, 5 Sep 2025 12:24:31 +0530 Subject: [PATCH] inbox: Remove empty space below filters for hidden folders. Hidden folders occupied space due to bottom margin. Fixed by moving the margin to elements which have `display: none` property so that margin is removed. --- web/styles/inbox.css | 12 ++++++++++-- .../inbox_view/inbox_folder_with_channels.hbs | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/styles/inbox.css b/web/styles/inbox.css index cf960a9565..aaffc0e4be 100644 --- a/web/styles/inbox.css +++ b/web/styles/inbox.css @@ -641,11 +641,19 @@ .inbox-folder-components { border-radius: 5px; border: 0.5px solid hsl(0deg 0% 0% / 13%); - /* 8px at 16px / 1em */ - margin-bottom: 0.5em; overflow: hidden; } +.inbox-folder-components + .inbox-folder-channel:last-child + .inbox-topic-container, +#inbox-direct-messages-container { + .inbox-row:last-child { + /* 8px at 16px / 1em */ + margin-bottom: 0.5em; + } +} + .inbox-folder.inbox-collapsed-state, .inbox-folder.hidden_by_filters { + .inbox-folder-components { diff --git a/web/templates/inbox_view/inbox_folder_with_channels.hbs b/web/templates/inbox_view/inbox_folder_with_channels.hbs index 77131a8c2a..34cbc11ce0 100644 --- a/web/templates/inbox_view/inbox_folder_with_channels.hbs +++ b/web/templates/inbox_view/inbox_folder_with_channels.hbs @@ -11,7 +11,7 @@ {{#each topics_dict as |key_value_list _index|}} {{#each ../streams_dict as |stream_key_value _stream_index|}} {{#if (and (eq stream_key_value.[1].folder_id ../../id) (eq stream_key_value.[0] key_value_list.[0]))}} -
+
{{> inbox_row stream_key_value.[1]}}
{{#each key_value_list.[1]}}