Skip to content

Commit 60edf74

Browse files
committed
Make Safari happy
Safari messes up aspect-ratio calculations for children of stack grid. REDMINE-20853
1 parent a41f188 commit 60edf74

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

entry_types/scrolled/package/src/contentElements/hotspots/Hotspots.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
.wrapper {
2626
transform-origin: 0 0;
27-
position: relative;
27+
position: absolute;
28+
top: 0;
29+
left: 0;
2830
height: 100%;
2931
aspect-ratio: var(--hotspots-image-aspect-ratio);
3032
}

entry_types/scrolled/package/src/contentElements/hotspots/Scroller.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
.inner {
2626
height: var(--hotspots-container-height);
27+
position: relative;
2728
}
2829

2930
.step {

0 commit comments

Comments
 (0)