mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
Category description in sub-category boxes is truncated after height 6em, customizable with CSS
This commit is contained in:
parent
e96d875bee
commit
9c03456e75
@ -15,7 +15,7 @@
|
||||
</div>
|
||||
|
||||
<div class='description'>
|
||||
{{{c.description_excerpt}}}
|
||||
{{{text-overflow class="overflow" text=c.description_excerpt}}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -234,6 +234,11 @@
|
||||
text-align: center;
|
||||
font-size: 1.05em;
|
||||
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%));
|
||||
.overflow {
|
||||
max-height: 6em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
Loading…
Reference in New Issue
Block a user