Commit 2a5c5518 by Brian Talbot

studio - plans for/truncates long usernames in main nav

parent 1e5fa875
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
.wrapper-l { .wrapper-l {
float: left; float: left;
margin-right: flex-gutter();
width: flex-grid(7,12); width: flex-grid(7,12);
} }
...@@ -45,11 +44,15 @@ ...@@ -45,11 +44,15 @@
vertical-align: middle; vertical-align: middle;
} }
.nav-account {
width: 100%;
}
// basic layout - nav items // basic layout - nav items
nav { nav {
> ol > .nav-item { > ol > .nav-item {
@extend .t-action2; @extend .t-action3;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
font-weight: 600; font-weight: 600;
...@@ -193,11 +196,16 @@ ...@@ -193,11 +196,16 @@
.nav-account-user { .nav-account-user {
.account-username { .title {
width: 100%; max-width: ($baseline*6.5);
overflow: hidden;
white-space: nowrap; > .label {
text-overflow: ellipsis; display: inline-block;
max-width: 85%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
} }
} }
} }
......
...@@ -28,7 +28,8 @@ nav { ...@@ -28,7 +28,8 @@ nav {
.title { .title {
.label, .icon-caret-down { .label, .icon-caret-down {
display: inline-block;
vertical-align: middle;
} }
.ui-toggle-dd { .ui-toggle-dd {
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</li> </li>
<li class="nav-item nav-account-user"> <li class="nav-item nav-account-user">
<h3 class="title"><span class="label"><span class="sr">Currently signed in as:</span><span class="label account-username">${ user.username }</span></span> <i class="icon-caret-down ui-toggle-dd"></i></h3> <h3 class="title"><span class="label"><span class="label-prefix sr">Currently signed in as:</span><span class="account-username" title="${ user.username }">${ user.username }</span></span> <i class="icon-caret-down ui-toggle-dd"></i></h3>
<div class="wrapper wrapper-nav-sub"> <div class="wrapper wrapper-nav-sub">
<div class="nav-sub"> <div class="nav-sub">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment