Skip to content

Commit adc3882

Browse files
fix: dual scrollbars on code block (#103)
Co-authored-by: Henry Wilkinson <henry@wilkinson.graphics>
1 parent 237a7ff commit adc3882

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/demo/astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const watchUiSource = {
5757

5858
// https://astro.build/config
5959
export default defineConfig({
60+
devToolbar: { enabled: false },
6061
site,
6162
vite: {
6263
plugins: [tailwindcss(), resolveUiFromSource, watchUiSource],

packages/ui/src/components/code-block/code-block.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@apply text-xs;
3535
@apply flex-1;
3636
@apply flex flex-col;
37-
@apply overflow-scroll;
37+
@apply overflow-auto;
3838
@apply min-w-0;
3939
font-family: var(--font-mono);
4040
}
@@ -71,7 +71,7 @@
7171
}
7272

7373
.pre {
74-
@apply bg-transparent! px-3! my-0!;
74+
@apply bg-transparent! px-3! my-0! overflow-visible!;
7575
@apply py-3;
7676
}
7777

0 commit comments

Comments
 (0)