Skip to content

Commit fdffb96

Browse files
committed
feat(styles): sets default aspect ratio for iframe
Ensures a default aspect ratio of 1:1 for iframes that do not have an explicit aspect ratio defined. This prevents layout issues where the iframe might collapse or render incorrectly, especially during initial loading or when aspect ratio is not properly handled by the embedding context.
1 parent 5615002 commit fdffb96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/blockparty-iframe/style.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@
1111
width: 100%;
1212
height: 100%;
1313
}
14+
15+
&:not(.has-aspect-ratio) {
16+
aspect-ratio: 1;
17+
min-height: unset;
18+
}
1419
}

0 commit comments

Comments
 (0)