Commit 2a5c5518 by Brian Talbot

studio - plans for/truncates long usernames in main nav

parent 1e5fa875
......@@ -29,7 +29,6 @@
.wrapper-l {
float: left;
margin-right: flex-gutter();
width: flex-grid(7,12);
}
......@@ -45,11 +44,15 @@
vertical-align: middle;
}
.nav-account {
width: 100%;
}
// basic layout - nav items
nav {
> ol > .nav-item {
@extend .t-action2;
@extend .t-action3;
display: inline-block;
vertical-align: middle;
font-weight: 600;
......@@ -193,11 +196,16 @@
.nav-account-user {
.account-username {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.title {
max-width: ($baseline*6.5);
> .label {
display: inline-block;
max-width: 85%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
......
......@@ -28,7 +28,8 @@ nav {
.title {
.label, .icon-caret-down {
display: inline-block;
vertical-align: middle;
}
.ui-toggle-dd {
......
......@@ -116,7 +116,7 @@
</li>
<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="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