mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
@@ -14,6 +14,8 @@ const Grid = styled.div<{ width: number; height: number }>`
|
||||
|
||||
max-height: min(${(props) => props.height}px, var(--attachment-max-height));
|
||||
|
||||
// This is a hack for browsers not supporting aspect-ratio.
|
||||
// Stolen from https://codepen.io/una/pen/BazyaOM.
|
||||
@supports not (
|
||||
aspect-ratio: ${(props) => props.width} / ${(props) => props.height}
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user