From 1b4c99b719735d02e0a2a6858d9231b15a35fce1 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 19 Sep 2026 10:27:58 +0100 Subject: [PATCH] Support iframing --- src/index.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/index.scss b/src/index.scss index ff4bba2..820045c 100644 --- a/src/index.scss +++ b/src/index.scss @@ -59,6 +59,8 @@ img { place-items: center; position: relative; min-inline-size: 5rem; + max-block-size: 100dvh; + overflow: hidden; background: var(--color-accent); color: var(--color-text); padding: var(--space-m) var(--space-s); @@ -78,9 +80,12 @@ img { min-width: 0; min-height: 100dvh; display: grid; - grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax(7rem, - 14vmin); + grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax( + 7rem, + 14vmin + ); position: relative; + overflow: hidden; } .rail { @@ -142,6 +147,7 @@ img { min-width: 0; min-height: 0; position: relative; + overflow: hidden; } .frame-content.is-loading::after { @@ -286,4 +292,4 @@ img { grid-row: 2; padding: var(--space-s); } -} \ No newline at end of file +}