Skip to content

Commit

Permalink
fix: fix white bg issue on terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix committed Jul 19, 2024
1 parent 90a1a2b commit 00a3e06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions web/src/components/features/inspector/Console/Console.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
inset: 0;
}

/** Fix white background in viewport **/
.app-Console__xterm .xterm-screen {
background: var(--terminal-bg);
}

.app-Console .terminal > * {
padding: 0 var(--terminal-padding-x);
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/features/inspector/Console/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const Console: React.FC<Props> = ({ fontFamily, fontSize, status, backend
}, [terminal?.textarea, setIsFocused])

return (
<div className="app-Console">
<div className="app-Console" style={{ '--terminal-bg': theme.background } as any}>
<CopyButton hidden={!isFocused} onClick={copySelection} />
<XTerm
ref={xtermRef}
Expand Down

0 comments on commit 00a3e06

Please sign in to comment.