mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 08:43:37 -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;
|
||||
|
||||
display: grid;
|
||||
overflow: hidden;
|
||||
aspect-ratio: ${(props) => props.width} / ${(props) => props.height};
|
||||
|
||||
max-width: min(var(--width), var(--attachment-max-width));
|
||||
|
|
Loading…
Reference in a new issue