Skip to content

Commit fd4e2cc

Browse files
authored
chore: improve contrast for terminal overlay (coder#3375)
1 parent 8a44388 commit fd4e2cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

site/src/pages/TerminalPage/TerminalPage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const TerminalPage: FC<{
203203
{/* This overlay makes it more obvious that the terminal is disconnected. */}
204204
{/* It's nice for situations where Coder restarts, and they are temporarily disconnected. */}
205205
<div className={`${styles.overlay} ${isDisconnected ? "" : "connected"}`}>
206-
<span>Disconnected</span>
206+
<span className={styles.overlayText}>Disconnected</span>
207207
</div>
208208
<div className={styles.terminal} ref={xtermRef} data-testid="terminal" />
209209
</>
@@ -227,11 +227,16 @@ const useStyles = makeStyles(() => ({
227227
color: "white",
228228
fontFamily: MONOSPACE_FONT_FAMILY,
229229
fontSize: 18,
230-
backgroundColor: "rgba(0, 0, 0, 0.2)",
230+
backgroundColor: "rgba(0, 0, 0, 0.6)",
231231
"&.connected": {
232232
opacity: 0,
233233
},
234234
},
235+
overlayText: {
236+
padding: 32,
237+
fontSize: 24,
238+
backgroundColor: "#000",
239+
},
235240
terminal: {
236241
width: "100vw",
237242
height: "100vh",

0 commit comments

Comments
 (0)