Make description clamp to 3 lines max

dev
mdPlusPlus 2 years ago
parent ba23be9a63
commit 3970fc8ade

@ -17,6 +17,16 @@ header {
#th_name { width:13%; }
#th_language { width:0% }
#th_description { }
.clamp {
/*white-space: nowrap;*/
overflow: hidden;
text-overflow: ellipsis;
display:
-webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
#th_users { width:0% }
.td_users { text-align: right; }
#th_preview { width:19%; }

@ -38,8 +38,9 @@
<td class="td_language"><?=$room->language?></td>
<td class="td_name"><?=$room->name?></td>
<td class="td_description">
<div class="clamp">
<?=$room->description?>
</div>
</td>
<td class="td_users"><?=$room->active_users?></td>
<td class="td_preview">

Loading…
Cancel
Save