From cf5939d36c6ab6f406427ec34c9165b17a545708 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Wed, 21 Jun 2023 15:27:13 -0400 Subject: [PATCH] Fix histoire overflow --- components/histoire.css | 8 ++++++++ components/histoire.setup.ts | 1 + 2 files changed, 9 insertions(+) create mode 100644 components/histoire.css diff --git a/components/histoire.css b/components/histoire.css new file mode 100644 index 00000000..afb0e276 --- /dev/null +++ b/components/histoire.css @@ -0,0 +1,8 @@ +[data-v-app] { + display: contents; +} + +.__histoire-render-story:not(.__histoire-render-custom-controls) { + overflow: initial; + min-height: none; +} diff --git a/components/histoire.setup.ts b/components/histoire.setup.ts index 80e09ed9..c31f2fdf 100644 --- a/components/histoire.setup.ts +++ b/components/histoire.setup.ts @@ -2,6 +2,7 @@ import { defineSetupVue3 } from '@histoire/plugin-vue'; import { createI18n } from 'vue-i18n'; import { createMemoryHistory, createRouter } from 'vue-router'; +import './histoire.css'; import './src/theme/main.css'; export const setupVue3 = defineSetupVue3(({ app }) => {