From 8e1f09df941d9552eb2dc59645b54aa45a8d9350 Mon Sep 17 00:00:00 2001 From: Stephen Nelson Date: Mon, 30 Oct 2023 17:15:17 +1030 Subject: [PATCH] Maximise available size for iframes --- Gemfile.lock | 2 +- .../stylesheets/katalyst/kpop/_frame.scss | 13 ----------- .../stylesheets/katalyst/kpop/_modal.scss | 23 ++----------------- lib/katalyst/kpop/version.rb | 2 +- 4 files changed, 4 insertions(+), 36 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 4733da5..53f4284 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,7 @@ GIT PATH remote: . specs: - katalyst-kpop (3.0.0.beta.4) + katalyst-kpop (3.0.0.beta.5) html-attributes-utils turbo-rails view_component diff --git a/app/assets/stylesheets/katalyst/kpop/_frame.scss b/app/assets/stylesheets/katalyst/kpop/_frame.scss index 76db522..66bac44 100644 --- a/app/assets/stylesheets/katalyst/kpop/_frame.scss +++ b/app/assets/stylesheets/katalyst/kpop/_frame.scss @@ -68,19 +68,6 @@ animation-fill-mode: forwards; } -.kpop-modal.iframe { - .kpop-content { - overflow: unset; - } - - iframe { - height: $max-height; - width: $max-width; - flex-grow: 1; - overflow: scroll; - } -} - @keyframes slide-in-up { 0% { transform: translateY(10%); diff --git a/app/assets/stylesheets/katalyst/kpop/_modal.scss b/app/assets/stylesheets/katalyst/kpop/_modal.scss index 00ca3d7..41b6c7e 100644 --- a/app/assets/stylesheets/katalyst/kpop/_modal.scss +++ b/app/assets/stylesheets/katalyst/kpop/_modal.scss @@ -68,28 +68,9 @@ } iframe { - height: $max-height; - width: $max-width; + height: var(--max-height); + width: var(--max-width); flex-grow: 1; overflow: scroll; } } - -@include mobile { - .kpop-modal { - border-radius: 0; - border: none; - } - - .kpop-modal.iframe { - iframe { - width: 100%; - height: 100%; - } - } - - .kpop-buttons { - flex-direction: column-reverse; - text-align: center; - } -} diff --git a/lib/katalyst/kpop/version.rb b/lib/katalyst/kpop/version.rb index bf4bfcc..d50977f 100644 --- a/lib/katalyst/kpop/version.rb +++ b/lib/katalyst/kpop/version.rb @@ -2,6 +2,6 @@ module Katalyst module Kpop - VERSION = "3.0.0.beta.4" + VERSION = "3.0.0.beta.5" end end