feat: enhance TerminalViewport styling and hide system caret in terminal input
This commit is contained in:
@@ -773,7 +773,7 @@ const TerminalViewport = React.forwardRef<TerminalController, TerminalViewportPr
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className={cn('relative h-full w-full', className)}
|
className={cn('relative h-full w-full terminal-viewport-container', className)}
|
||||||
style={{ backgroundColor: theme.background }}
|
style={{ backgroundColor: theme.background }}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
if (enableTouchScroll) {
|
if (enableTouchScroll) {
|
||||||
@@ -799,10 +799,14 @@ const TerminalViewport = React.forwardRef<TerminalController, TerminalViewportPr
|
|||||||
top: 0,
|
top: 0,
|
||||||
width: 1,
|
width: 1,
|
||||||
height: 1,
|
height: 1,
|
||||||
opacity: 0.001,
|
opacity: 0,
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
color: 'transparent',
|
color: 'transparent',
|
||||||
|
caretColor: 'transparent',
|
||||||
|
resize: 'none',
|
||||||
|
overflow: 'hidden',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
padding: 0,
|
padding: 0,
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|||||||
@@ -1518,3 +1518,8 @@ html:not(.dark) .chat-scroll {
|
|||||||
content-visibility: visible !important;
|
content-visibility: visible !important;
|
||||||
contain-intrinsic-size: none !important;
|
contain-intrinsic-size: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide system caret in terminal - targets both Ghostty internal input and our custom touch input */
|
||||||
|
.terminal-viewport-container textarea {
|
||||||
|
caret-color: transparent !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user