Limit title text height in CSS

This commit is contained in:
Alex Ling 2020-04-01 04:47:55 +00:00
parent 32dc3e84b9
commit 68d1b55aea
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,9 @@
max-height: 350px;
overflow: hidden;
}
.uk-card-title {
height: 3em;
}
.acard:hover {
text-decoration: none;
}

View File

@ -1,7 +1,6 @@
const truncate = () => {
$('.acard .uk-card-title').each((i, e) => {
new Dotdotdot(e, {
height: 120,
$(e).dotdotdot({
truncate: 'letter'
});
});