Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

inbox: Move scrolling container to `html`.

Aman Agrawal7bce78694eea
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index 7917ac264e9..e2e2e1f0c32 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -1,18 +1,15 @@
.inbox-container {
display: flex;
flex-direction: column;
- overflow: hidden;
background: var(--color-background-inbox);
font-size: 15px;
padding: 0;
- max-height: 100vh;
border-radius: 4px;
border-right: 1px solid var(--color-border-inbox);
border-left: 1px solid var(--color-border-inbox);
#inbox-pane {
max-width: 100%;
- overflow: hidden;
display: flex;
flex-direction: column;
margin: var(--navbar-fixed-height) 25px 0;
@@ -31,8 +28,12 @@
}
.search_group {
+ position: sticky;
+ top: var(--navbar-fixed-height);
+ background: var(--color-background);
display: flex;
- margin: 15px 0 10px;
+ padding: 15px 0 10px;
+ z-index: 1;
}
.btn-inbox-filter {
@@ -57,8 +58,8 @@
#inbox-filters {
.zulip-icon-search-inbox {
position: absolute;
- top: calc(var(--navbar-fixed-height) + 23px);
- left: 32px;
+ top: 23px;
+ left: 6px;
color: var(--color-icon-search-inbox);
}
}
@@ -87,16 +88,10 @@
}
#inbox-list {
- /* 55px = height of filters
- 42px = height of closed compose box */
- height: calc(100vh - 55px - 42px - var(--navbar-fixed-height));
-
- .simplebar-content {
- overflow-x: hidden;
- border-radius: 5px;
- border: 1px solid hsl(0deg 0% 0% / 20%);
- margin-bottom: var(--max-unexpanded-compose-height);
- }
+ overflow: hidden;
+ border-radius: 5px;
+ border: 1px solid hsl(0deg 0% 0% / 20%);
+ margin-bottom: var(--max-unexpanded-compose-height);
.inbox-focus-border {
display: flex;
diff --git a/web/templates/inbox_view/inbox_view.hbs b/web/templates/inbox_view/inbox_view.hbs
index 2f26332a393..9575c78d315 100644
--- a/web/templates/inbox_view/inbox_view.hbs
+++ b/web/templates/inbox_view/inbox_view.hbs
@@ -1,13 +1,13 @@
<div id="inbox-main" class="no-select">
<div class="search_group" id="inbox-filters" role="group">
- <i class="zulip-icon zulip-icon-search-inbox"></i>
<input type="text" id="{{INBOX_SEARCH_ID}}" value="{{search_val}}" autocomplete="off" placeholder="{{t 'Filter' }}" />
+ <i class="zulip-icon zulip-icon-search-inbox"></i>
<button data-filter="include_muted" id="{{MUTED_FILTER_ID}}" type="button" class="btn btn-default btn-inbox-filter {{#if is_spectator}}fake_disabled_button{{/if}}" role="checkbox" aria-checked="false" tabindex="0">
<i id="inbox_filter_mute_toggle" class="fa fa-square-o"></i>
{{t 'Include muted' }}
</button>
</div>
- <div id="inbox-list" data-simplebar>
+ <div id="inbox-list">
{{> inbox_list}}
</div>
</div>