Skip to content

Commit 4c2b113

Browse files
authored
UX: update fixed styling for sidebar & chat (#18)
1 parent 95a99bb commit 4c2b113

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

desktop/desktop.scss

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
$item-height: 40px;
22

33
@if $Fixed_mode == "true" {
4-
.top-menu {
5-
position: fixed;
4+
.header-submenus {
5+
position: sticky;
66
top: 0;
77
z-index: z("header") + 1;
88
}
@@ -14,6 +14,28 @@ $item-height: 40px;
1414
#main-outlet {
1515
padding-top: calc(1.8em + #{$item-height});
1616
}
17+
18+
// need to include the menu height in the header offset
19+
// then update the header offset where used in core for sidebar and chat
20+
:root {
21+
--header-offset-with-submenu: calc(
22+
var(--header-offset, 0px) + #{$item-height}
23+
);
24+
}
25+
26+
.sidebar-wrapper {
27+
top: var(--header-offset-with-submenu);
28+
height: calc(100vh - var(--header-offset-with-submenu, 0px));
29+
}
30+
31+
html.has-full-page-chat body #main-outlet {
32+
max-height: calc(
33+
var(--chat-vh, 1vh) *
34+
100 -
35+
var(--header-offset-with-submenu, 0px) -
36+
var(--composer-height, 0px)
37+
);
38+
}
1739
}
1840

1941
.top-menu {

0 commit comments

Comments
 (0)