mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Limit title text height in CSS
This commit is contained in:
parent
32dc3e84b9
commit
68d1b55aea
@ -8,6 +8,9 @@
|
|||||||
max-height: 350px;
|
max-height: 350px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.uk-card-title {
|
||||||
|
height: 3em;
|
||||||
|
}
|
||||||
.acard:hover {
|
.acard:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
const truncate = () => {
|
const truncate = () => {
|
||||||
$('.acard .uk-card-title').each((i, e) => {
|
$('.acard .uk-card-title').each((i, e) => {
|
||||||
new Dotdotdot(e, {
|
$(e).dotdotdot({
|
||||||
height: 120,
|
|
||||||
truncate: 'letter'
|
truncate: 'letter'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user