use clamp
This commit is contained in:
parent
92201e7f13
commit
4af1f6bf40
|
@ -194,7 +194,7 @@ const previewable = (file: misskey.entities.DriveFile): boolean => {
|
||||||
|
|
||||||
&.n1expand {
|
&.n1expand {
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
max-height: max(min(calc(var(--containerHeight, 100svh) * 0.5), 50svh, 334px), 64px);
|
max-height: clamp(64px, calc(var(--containerHeight, 100svh) * 0.5), min(334px, 50vh));
|
||||||
}
|
}
|
||||||
|
|
||||||
&.n116_9 {
|
&.n116_9 {
|
||||||
|
|
Loading…
Reference in New Issue