Skip to content

Commit

Permalink
Maximise available size for iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson committed Oct 30, 2023
1 parent 4cbeb35 commit 8e1f09d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions app/assets/stylesheets/katalyst/kpop/_frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
Expand Down
23 changes: 2 additions & 21 deletions app/assets/stylesheets/katalyst/kpop/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion lib/katalyst/kpop/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Katalyst
module Kpop
VERSION = "3.0.0.beta.4"
VERSION = "3.0.0.beta.5"
end
end

0 comments on commit 8e1f09d

Please sign in to comment.