Glyph wasn't wrapping properly with long categories

This commit is contained in:
Kris 2018-02-27 17:10:02 -05:00
parent be63b08c36
commit b832c3d885
2 changed files with 10 additions and 5 deletions

View File

@ -1,11 +1,12 @@
{{category-title-before category=category}}
<a class="category-title-link" href={{category.url}}>
{{#if category.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
<span class="category-name">{{dir-span category.name}}</span>
<div class="category-text-title">
{{#if category.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
<span class="category-name">{{dir-span category.name}}</span>
</div>
{{#if category.uploaded_logo.url}}
<div>{{cdn-img src=category.uploaded_logo.url class="category-logo"}}</div>
{{/if}}

View File

@ -1,5 +1,9 @@
.category-list {
table-layout: fixed;
.category-text-title {
display: flex;
align-items: baseline;
}
.category-name {
display: inline-block;
max-width: 100%;