Skip to content

Commit 0d2723f

Browse files
dudizillaggazzo
andauthored
Regression: Fix Unread bar design (#17750)
Co-authored-by: Guilherme Gazzo <[email protected]>
1 parent 499f245 commit 0d2723f

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

app/theme/client/imports/components/sidebar/rooms-list.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
&__toolbar-search {
4646
position: absolute;
47-
z-index: 1;
47+
z-index: 10;
4848

4949
left: 10px;
5050

app/theme/client/imports/components/sidebar/sidebar.css

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,35 @@
6969

7070
& .unread-rooms {
7171
position: absolute;
72-
top: 0;
73-
right: 0;
74-
left: 0;
72+
left: 50%;
7573

76-
width: 100%;
77-
padding: calc(var(--sidebar-small-default-padding) - 8px);
74+
overflow: hidden;
75+
76+
min-width: 120px;
77+
max-width: 100%;
78+
79+
padding: 8px var(--sidebar-small-default-padding);
80+
81+
-webkit-transform: translateX(-50%);
82+
transform: translateX(-50%);
7883

7984
animation: fade 0.3s;
8085

8186
text-align: center;
87+
88+
white-space: nowrap;
89+
90+
text-overflow: ellipsis;
91+
92+
border-radius: 25px;
93+
94+
&.bottom-unread-rooms {
95+
bottom: 0;
96+
}
97+
98+
&.top-unread-rooms {
99+
top: 0;
100+
}
82101
}
83102
}
84103
}

app/ui-sidenav/client/sideNav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{{> sidebarHeader }}
44
{{#if loggedInUser}}
55
<div class="wrapper-unread">
6-
<div class="unread-rooms background-primary-action-color color-primary-action-contrast top-unread-rooms hidden" id="fade">
7-
{{_ "More_unreads"}} <i class="icon-up-big"></i>
6+
<div class="unread-rooms background-primary-action-color color-primary-action-contrast top-unread-rooms hidden">
7+
<i class="icon-up-big"></i> {{_ "More_unreads"}}
88
</div>
99
</div>
1010
<div class="rooms-list" aria-label="{{_ "Channels"}}" role="region">
@@ -14,7 +14,7 @@
1414
</div>
1515
<div class="wrapper-unread">
1616
<div class="unread-rooms background-primary-action-color color-primary-action-contrast bottom-unread-rooms hidden">
17-
{{_ "More_unreads"}} <i class="icon-down-big"></i>
17+
<i class="icon-down-big"></i> {{_ "More_unreads"}}
1818
</div>
1919
</div>
2020
<div class="flex-nav animated-hidden">

0 commit comments

Comments
 (0)