Skip to content

chore: improve contrast for terminal overlay #3375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions site/src/pages/TerminalPage/TerminalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const TerminalPage: FC<{
{/* This overlay makes it more obvious that the terminal is disconnected. */}
{/* It's nice for situations where Coder restarts, and they are temporarily disconnected. */}
<div className={`${styles.overlay} ${isDisconnected ? "" : "connected"}`}>
<span>Disconnected</span>
<span className={styles.overlayText}>Disconnected</span>
</div>
<div className={styles.terminal} ref={xtermRef} data-testid="terminal" />
</>
Expand All @@ -227,11 +227,16 @@ const useStyles = makeStyles(() => ({
color: "white",
fontFamily: MONOSPACE_FONT_FAMILY,
fontSize: 18,
backgroundColor: "rgba(0, 0, 0, 0.2)",
backgroundColor: "rgba(0, 0, 0, 0.6)",
"&.connected": {
opacity: 0,
},
},
overlayText: {
padding: 32,
fontSize: 24,
backgroundColor: "#000",
},
terminal: {
width: "100vw",
height: "100vh",
Expand Down