Skip to content

Commit

Permalink
XWIKI-13987: Navbar height is increased by 5px on small device (<768px)
Browse files Browse the repository at this point in the history
* Removed the space used by the left navbar when it has no children (xwiki standard's default)
  • Loading branch information
Sereza7 committed Nov 21, 2024
1 parent bb85135 commit e223296
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
float: left;
margin-left: @navbar-padding-horizontal;
margin-right: @navbar-padding-horizontal;
/* Without this rule, the left navbar will cause unexpected layout shifts even when it's empty. */
&:not(:has(> *)) {
margin-top: 0;
}
}
}
}
Expand Down

0 comments on commit e223296

Please sign in to comment.