fix: add overflow to attachment grid

This commit is contained in:
Paul Makles 2022-05-19 13:42:06 +01:00
parent dc110ca082
commit 5d7b8f1851

View file

@ -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));