Skip to content

Commit

Permalink
fix: custom controls taking too much space
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 23, 2022
1 parent 6799472 commit 59d1153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const hasCustomControls = computed(() => props.variant.slots().controls || props
slot-name="controls"
:variant="variant"
:story="story"
class="htw-flex-none"
class="__histoire-render-custom-controls htw-flex-none"
@ready="ready = true"
/>

Expand Down
2 changes: 1 addition & 1 deletion packages/histoire-app/src/app/style/main.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ button {
}
}

.__histoire-render-story {
.__histoire-render-story:not(.__histoire-render-custom-controls) {
overflow: auto;
min-height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire-app/src/app/style/sandbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ html {
display: none;
}

.__histoire-render-story {
.__histoire-render-story:not(.__histoire-render-custom-controls) {
overflow: auto;
min-height: 100%;
}

0 comments on commit 59d1153

Please sign in to comment.