Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/lib/holocene/code-block.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,29 @@ var myClient = TemporalClient.ConnectAsync(new("<endpoint>")
copyable: false,
}}
/>

<Story name="Test page scrolling">
<div>
<p>
content<br />
content<br />
content<br />
content<br />
content<br />
content<br />
content<br />
content
</p>
<CodeBlock copyable language="json" content={largeJson} maxHeight={300} />
<p>
content<br />
content<br />
content<br />
content<br />
content<br />
content<br />
content<br />
content
</p>
</div>
</Story>
1 change: 0 additions & 1 deletion src/lib/vendor/codemirror/custom-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const baseTheme = {
// Ensure inner scroller reliably captures wheel/touchpad scroll,
// especially on Firefox with mouse wheels.
overflow: 'auto',
overscrollBehavior: 'contain',
},
'.cm-content': {
caretColor: css('--color-text-primary'),
Expand Down
Loading