fix: add overflow to attachment grid
parent
840b2aa05f
commit
db5ebf4eaa
|
|
@ -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 New Issue