Clamp 3 lines

This commit is contained in:
Lim Chee Aun 2023-11-02 17:38:38 +08:00
parent 490d776a70
commit 131b91e2c1
2 changed files with 9 additions and 1 deletions

View file

@ -82,7 +82,7 @@ function AccountBlock({
}}
>
<Avatar url={avatar} size={avatarSize} squircle={bot} />
<span>
<span class="account-block-content">
{!hideDisplayName && (
<>
{displayName ? (

View file

@ -462,6 +462,14 @@
var(--bg-color) calc(100% - 8px),
transparent
);
.account-block-content {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
line-clamp: 3;
-webkit-line-clamp: 3;
}
}
.faux-header-bg {