Limit the number of lines to display in card titles

This commit is contained in:
Alex Ling
2020-03-30 20:36:27 +00:00
parent c6369f9f26
commit 460fcdf2f5
3 changed files with 14 additions and 0 deletions

10
public/js/dots.js Normal file
View File

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