Sidebar disappears at exact 768px width
Bug #1661422 reported by
George Moon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Eddie Ramirez |
Bug Description
The following behaviours occur when the dashboard is viewed at specific widths:
- screen width <= 767px : the sidebar disappears and is replaced by a 'hamburger' button in the top bar. Works properly.
- screen width >= 769px : the sidebar is visible. Works properly.
- screen width == 768px : the sidebar disappears, but the main content padding is not adjusted, and no 'hamburger' button is added to the menu.
The SCSS code needs to be fixed so that the sidebar remains visible at a width of 768px, or the main content padding and hamburger menu appear at the width.
Changed in horizon: | |
milestone: | none → pike-1 |
importance: | Undecided → Low |
To post a comment you must log in.
It would appear that this bug is resolvable by changing the following two lines of SCSS.
diff --git a/openstack_ dashboard/ static/ dashboard/ scss/components /_sidebar. scss b/openstack_ dashboard/ static/ dashboard/ scss/components /_sidebar. scss dashboard/ static/ dashboard/ scss/components /_sidebar. scss dashboard/ static/ dashboard/ scss/components /_sidebar. scss
index ddca001..c6762ba 100644
--- a/openstack_
+++ b/openstack_
@@ -22,12 +22,12 @@
z-index: 2;
transition: all 0.3s ease 0s;
- @media (max-width: $screen-sm-min) {
+ @media (max-width: $screen-xs-max) {
&.on-screen {
visibility: visible;
opacity: 1;
}
}
}
#sidebar {
@@ -39,7 +39,7 @@
display: block;
}
- @media (max-width: $screen-sm-min) {
+ @media (max-width: $screen-xs-max) {
transition: all 0.3s ease 0s;
position: fixed;
top: $navbar-height;