Skip to content

Commit

Permalink
Update navigation bar to more gracefully handle extreme scenarios
Browse files Browse the repository at this point in the history
 - Sometimes the middle nav is dynamic (including titles), which means it could be inordinately large.  For now, we'll handle this by setting a max size on the middle nav and setting overflow in the horizontal direction.  In the future, the menu-bars that get placed in the middle nav should take this into account and gracefully degrade.
  • Loading branch information
andrewkfiedler authored and rzwiefel committed Dec 9, 2016
1 parent e7f11ca commit 525701e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
color: @text-color;
height: 60px;
overflow: hidden;
white-space: nowrap;
.vertical-borders(1px, @heavily-lighten-inherited-background-color);

> .navigation-left,
Expand Down Expand Up @@ -51,4 +52,11 @@
text-align: center;
}

> .navigation-middle {
max-width: ~'calc(100% - 450px)';
overflow-x: auto;
overflow-y: hidden;
text-overflow: ellipsis;
}

}

0 comments on commit 525701e

Please sign in to comment.