mirror of https://github.com/zulip/zulip.git
navbar: Fix navbar heading gap when using full width.
Added CSS variable for left column width in the navbar. Fixes: #30619.
This commit is contained in:
parent
cc7df6d85b
commit
ac0bb46c52
|
@ -41,6 +41,19 @@
|
|||
/* Keep content from colliding with the search box. */
|
||||
--navbar-content-righthand-offset: 5px;
|
||||
|
||||
/*
|
||||
Width of navbar left column
|
||||
40px (Sidebar toggle icon) + 80px (wide logo).
|
||||
*/
|
||||
--navbar-left-column-width: 120px;
|
||||
/*
|
||||
Both icon and logo change in width when height of header is reduced
|
||||
30px (Sidebar toggle icon) + 60px (wide logo)
|
||||
*/
|
||||
@media (height < $short_navbar_cutoff_height) {
|
||||
--navbar-left-column-width: 90px;
|
||||
}
|
||||
|
||||
/*
|
||||
We have a 10px gutter below the header,
|
||||
which often needs to be respected by both
|
||||
|
|
|
@ -1869,6 +1869,12 @@ div.toggle_resolve_topic_spinner .loading_indicator_spinner {
|
|||
@extend %hide-left-sidebar;
|
||||
|
||||
&.fluid_layout_width {
|
||||
/* Since left sidebar is closed, update margin-left from --left-sidebar-width
|
||||
to --navbar-left-column-width. Add sufficient space to the right of left column */
|
||||
.column-middle {
|
||||
margin-left: calc(var(--navbar-left-column-width) + 30px);
|
||||
}
|
||||
|
||||
#compose-content,
|
||||
.app-main .column-middle {
|
||||
margin-left: 7px;
|
||||
|
|
Loading…
Reference in New Issue