Reduce card font size and link to the title pages

(#84)
This commit is contained in:
Alex Ling
2020-07-04 08:50:13 +00:00
parent f9ca52ee2f
commit 4d5a305d1b
5 changed files with 115 additions and 53 deletions
+2 -3
View File
@@ -1,13 +1,12 @@
const truncate = () => {
$('.acard .uk-card-title').each((i, e) => {
$('.uk-card-title').each((i, e) => {
$(e).dotdotdot({
truncate: 'letter',
watch: true,
callback: (truncated) => {
if (truncated) {
$(e).attr('uk-tooltip', $(e).attr('data-title'));
}
else {
} else {
$(e).removeAttr('uk-tooltip');
}
}