mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Truncated long card menu labels
This commit is contained in:
parent
c6753a0efd
commit
581b195e12
@ -125,7 +125,7 @@
|
||||
color: #1e0fbe;
|
||||
font-size: 1.8rem;
|
||||
line-height: 2.16rem;
|
||||
text-overflow: ellipses;
|
||||
text-overflow: ellipsis;
|
||||
word-wrap: break-word;
|
||||
|
||||
-webkit-text-overflow: ellipsis;
|
||||
|
@ -10,6 +10,7 @@
|
||||
class="{{if (eq item @selectedItem) "kg-cardmenu-card-selected"}} {{kg-style "cardmenu-card"}}"
|
||||
data-kg="cardmenu-card"
|
||||
role="menuitem"
|
||||
title="{{item.label}}"
|
||||
{{on "click" (fn @itemClicked item)}}
|
||||
>
|
||||
<div class="{{kg-style "cardmenu-icon"}} {{item.iconClass}}" aria-hidden="true">{{svg-jar item.icon class="w7 h7"}}</div>
|
||||
|
@ -21,7 +21,7 @@ export function kgStyle([style], options) {
|
||||
break;
|
||||
|
||||
case 'cardmenu-label':
|
||||
cssClass = 'f-7 tracked-1 fw4 ma0 ml4 flex-grow-1';
|
||||
cssClass = 'f-7 tracked-1 fw4 ma0 ml4 flex-grow-1 truncate';
|
||||
break;
|
||||
|
||||
// Container cards
|
||||
|
Loading…
Reference in New Issue
Block a user