Skip to content

Commit 06be58e

Browse files
committed
fix(preview): drop double scrollbar in workspace
The outer <div className="relative flex-1 overflow-auto"> wrapping the preview body was creating a second scroll track on top of whichever scroll lives inside the body variant: - mobile / tablet body already has its own overflow-auto - desktop body is an iframe with intrinsic scrolling The outer only needs to be a positioned parent for the absolutely positioned TweakPanel, so switching to overflow-hidden removes the redundant track without breaking Tweak drag bounds.
1 parent b84c022 commit 06be58e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/renderer/src/components/PreviewPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ export function PreviewPane({ onPickStarter }: PreviewPaneProps) {
477477
</div>
478478
)}
479479
<CanvasErrorBar />
480-
<div className="relative flex-1 overflow-auto">
480+
<div className="relative flex-1 overflow-hidden">
481481
{body}
482482
{previewHtml ? <TweakPanel iframeRef={iframeRef} /> : null}
483483
</div>

0 commit comments

Comments
 (0)