Skip to content

Commit

Permalink
fix: non-iframe scrolling, fix #386
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 2, 2022
1 parent 49fd495 commit 2c3981c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ watchEffect(async () => {
<component
:is="mountComponent"
v-if="mountComponent"
class="histoire-generic-render-story htw-sandbox-contain"
class="histoire-generic-render-story __histoire-render-story"
:story="story"
v-bind="$attrs"
/>
Expand Down
5 changes: 3 additions & 2 deletions packages/histoire-app/src/app/style/main.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ button {
}
}

.htw-sandbox-contain {
contain: content;
.__histoire-render-story {
overflow: auto;
min-height: 100%;
}

.__histoire-code .shiki {
Expand Down
5 changes: 3 additions & 2 deletions packages/histoire-app/src/app/style/sandbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ html {
display: none;
}

.htw-sandbox-contain {
contain: content;
.__histoire-render-story {
overflow: auto;
min-height: 100%;
}

0 comments on commit 2c3981c

Please sign in to comment.