forked from abner/for-legacy-web
fix: add overflow to attachment grid
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user