mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
fix: add overflow to attachment grid
This commit is contained in:
parent
dc110ca082
commit
5d7b8f1851
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ const Grid = styled.div<{ width: number; height: number }>`
|
||||||
--height: ${(props) => props.height}px;
|
--height: ${(props) => props.height}px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
overflow: hidden;
|
||||||
aspect-ratio: ${(props) => props.width} / ${(props) => props.height};
|
aspect-ratio: ${(props) => props.width} / ${(props) => props.height};
|
||||||
|
|
||||||
max-width: min(var(--width), var(--attachment-max-width));
|
max-width: min(var(--width), var(--attachment-max-width));
|
||||||
|
|
Loading…
Reference in a new issue