mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-22 13:49:23 +01:00
Clamp 3 lines
This commit is contained in:
parent
490d776a70
commit
131b91e2c1
2 changed files with 9 additions and 1 deletions
src/components
|
@ -82,7 +82,7 @@ function AccountBlock({
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Avatar url={avatar} size={avatarSize} squircle={bot} />
|
<Avatar url={avatar} size={avatarSize} squircle={bot} />
|
||||||
<span>
|
<span class="account-block-content">
|
||||||
{!hideDisplayName && (
|
{!hideDisplayName && (
|
||||||
<>
|
<>
|
||||||
{displayName ? (
|
{displayName ? (
|
||||||
|
|
|
@ -462,6 +462,14 @@
|
||||||
var(--bg-color) calc(100% - 8px),
|
var(--bg-color) calc(100% - 8px),
|
||||||
transparent
|
transparent
|
||||||
);
|
);
|
||||||
|
|
||||||
|
.account-block-content {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
line-clamp: 3;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.faux-header-bg {
|
.faux-header-bg {
|
||||||
|
|
Loading…
Reference in a new issue