Skip to content

Commit e041c19

Browse files
committed
chore: adjust latency background
1 parent 4abe041 commit e041c19

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/proxies/ProxyLatency.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
gap: 4px;
1010
border-radius: 9999px;
1111
border: 1px solid var(--color-proxy-border);
12-
background: var(--bg-near-transparent);
12+
/* Use theme-aware latency background with sensible default */
13+
background: var(--bg-latency, #ffffff);
1314
color: var(--color-text);
1415
font-size: 0.75em;
1516
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,

src/styles/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ body {
124124
--bg-log-info-tag: #454545;
125125
--bg-modal: #1f1f20;
126126
--bg-near-transparent: rgba(255, 255, 255, 0.1);
127+
/* Background used for latency pill; theme-aware to preserve readability */
128+
--bg-latency: rgba(85, 85, 85, 0.596);
127129
--bg-tooltip: #111;
128130
--bc-tooltip: #555;
129131
--select-border-color: #040404;
@@ -162,6 +164,7 @@ body {
162164
--bg-log-info-tag: #888;
163165
--bg-modal: #fbfbfb;
164166
--bg-near-transparent: rgba(0, 0, 0, 0.1);
167+
--bg-latency: rgba(255, 255, 255, 0.863);
165168
--bg-tooltip: #f0f0f0;
166169
--bc-tooltip: #ccc;
167170
--select-border-color: #999999;

0 commit comments

Comments
 (0)