mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Clamp 3 lines
This commit is contained in:
parent
490d776a70
commit
131b91e2c1
2 changed files with 9 additions and 1 deletions
|
@ -82,7 +82,7 @@ function AccountBlock({
|
|||
}}
|
||||
>
|
||||
<Avatar url={avatar} size={avatarSize} squircle={bot} />
|
||||
<span>
|
||||
<span class="account-block-content">
|
||||
{!hideDisplayName && (
|
||||
<>
|
||||
{displayName ? (
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue