TootPreviewCard: limit text lines (#9)
All checks were successful
/ depoly (push) Successful in 1m1s
All checks were successful
/ depoly (push) Successful in 1m1s
A problem in this impl is that the ellipsis does not show.
This commit is contained in:
parent
581d2d456e
commit
3ae9cffba8
3 changed files with 13 additions and 0 deletions
|
@ -137,12 +137,19 @@
|
|||
|
||||
>h1 {
|
||||
color: var(--tutu-color-on-surface);
|
||||
max-height: calc(4 * var(--title-line-height) * var(--title-size));
|
||||
}
|
||||
|
||||
> p {
|
||||
max-height: calc(8 * var(--body-line-height) * var(--body-size));
|
||||
}
|
||||
|
||||
>h1,
|
||||
>p {
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&.compact {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue