Skip to content

Commit 0dd0bac

Browse files
committed
Fix dashboard terminal scroll blocking page scroll
1 parent ab3ffa2 commit 0dd0bac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vbcdr",
3-
"version": "1.1.17",
3+
"version": "1.1.18",
44
"description": "Desktop vibe coding environment for Claude Code developers",
55
"author": {
66
"name": "jo vinkenroye",

src/renderer/components/dashboard/DashboardTerminal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export function DashboardTerminal({ tabId }: DashboardTerminalProps): React.Reac
2323
container.appendChild(termEl)
2424
entry.terminal.scrollToBottom()
2525

26+
const viewport = termEl.querySelector('.xterm-viewport') as HTMLElement | null
27+
const prevOverflow = viewport?.style.overflowY ?? ''
28+
if (viewport) viewport.style.overflowY = 'hidden'
29+
2630
const termWidth = termEl.offsetWidth
2731
const termHeight = termEl.offsetHeight
2832
const containerWidth = container.clientWidth
@@ -37,6 +41,7 @@ export function DashboardTerminal({ tabId }: DashboardTerminalProps): React.Reac
3741
}
3842

3943
return () => {
44+
if (viewport) viewport.style.overflowY = prevOverflow
4045
termEl.style.transform = ''
4146
termEl.style.transformOrigin = ''
4247
if (originalParent) {

0 commit comments

Comments
 (0)