Skip to content

Commit 49bf1c6

Browse files
committed
Improve xterm scrollbar styling and container height
1 parent b9c1d92 commit 49bf1c6

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/components/terminal/terminal.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
position: relative;
44
overflow: hidden;
55
padding-left: 16px; /* Only add left padding */
6-
padding-right: 8px;
76
}
87

98
/* Ensure xterm doesn't overflow its container */
@@ -31,9 +30,7 @@
3130
}
3231

3332
.xterm-container .xterm-viewport::-webkit-scrollbar-track {
34-
background-color: var(--color-hover);
35-
border-radius: 6px;
36-
margin: 4px;
33+
border-left: 1px solid var(--color-border);
3734
}
3835

3936
.xterm-container .xterm-viewport::-webkit-scrollbar-thumb {
@@ -74,4 +71,4 @@
7471
/* Override xterm cursor when hovering links */
7572
.xterm.xterm-cursor-pointer {
7673
cursor: pointer !important;
77-
}
74+
}

src/components/terminal/terminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export const XtermTerminal: React.FC<XtermTerminalProps> = ({
699699
id={`terminal-${sessionId}`}
700700
className={cn("xterm-container", "w-full", "text-text", !isActive && "opacity-60")}
701701
style={{
702-
height: "calc(100% - 40px)", // Subtract footer height to prevent content going below
702+
height: "calc(100% - 1px)", // Subtract footer height to prevent content going below
703703
}}
704704
/>
705705
</div>

0 commit comments

Comments
 (0)