diff options
author | Gabriel Albo <gabriel@albo.com.br> | 2015-03-02 11:38:25 -0300 |
---|---|---|
committer | Gabriel Albo <gabriel@albo.com.br> | 2015-03-02 11:38:25 -0300 |
commit | 40f5c2d13f03ce43fd2791848cffb7405dc9eb5a (patch) | |
tree | eb38124c665ee9a2cea98a74ab22bc5eb9b22f2c | |
parent | 88f366a79f7803679cf094ff474882265de08c37 (diff) |
Adding ellipsis when custom tag names are longer than the sidenav's width
-rw-r--r-- | web-ui/app/scss/styles.scss | 4 | ||||
-rw-r--r-- | web-ui/app/templates/tags/tag.hbs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/web-ui/app/scss/styles.scss b/web-ui/app/scss/styles.scss index 8ff6a15a..5a89ddd4 100644 --- a/web-ui/app/scss/styles.scss +++ b/web-ui/app/scss/styles.scss @@ -338,6 +338,10 @@ section { font-size: 0.8em; padding: 5px 10px 5px 15px; + &.custom-tag { + text-overflow: ellipsis; + } + span.tag-label { padding: 5px 20px 5px 38px; } diff --git a/web-ui/app/templates/tags/tag.hbs b/web-ui/app/templates/tags/tag.hbs index 5df67513..ca397b9a 100644 --- a/web-ui/app/templates/tags/tag.hbs +++ b/web-ui/app/templates/tags/tag.hbs @@ -1,3 +1,3 @@ -<li id="tag-{{ ident }}" class="{{ selected }}"> +<li id="tag-{{ ident }}" class="custom-tag {{ selected }}"> <span class="tag-label">{{> tag_inner }}</span> </li> |