Skip to content

Commit

Permalink
Make sure most app names don’t ellipsize, fix #22845, fix #22219
Browse files Browse the repository at this point in the history
Signed-off-by: Jan C. Borchardt <[email protected]>
  • Loading branch information
jancborchardt committed Sep 17, 2020
1 parent e14ba58 commit b9807e0
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions core/css/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ nav[role='navigation'] {
li {
position: relative;
cursor: pointer;
margin: 0 2px;
padding: 0 2px;
display: flex;
justify-content: center;

Expand All @@ -446,26 +446,38 @@ nav[role='navigation'] {
align-items: center;
justify-content: center;
opacity: .6;
// Make sure most app names don’t ellipsize
letter-spacing: -0.5px;
font-size: 12px;
}

/* focused app visual feedback */
&:hover a,
a:focus,
a.active {
opacity: 1;
font-weight: bold;
}

// Text size back to normal for hover/focus
&:hover a,
a:focus {
font-size: 14px;
}

&:hover a + span,
a:focus + span,
&:hover span,
&:focus span,
a:focus span {
a:focus span,
a.active span {
display: inline-block;
text-overflow: initial;
width: auto;
overflow: hidden;
padding: 0 5px;
z-index: 2;
margin-bottom: -1px; // for vertical alignment
}

/* hidden apps menu */
Expand All @@ -482,7 +494,7 @@ nav[role='navigation'] {
position: absolute;
color: var(--color-primary-text);
bottom: 2px;
width: calc(100% - 4px);
width: 100%;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
Expand Down

0 comments on commit b9807e0

Please sign in to comment.