Skip to content

Commit d27def5

Browse files
fix: use black text color in sys-msg and task input fields, fix System Message label color
1 parent bc53904 commit d27def5

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197

198198
/* ── System message card ─────────────────────────────────── */
199199
#chat-sys-wrap .card-accent{transition:all .3s ease;overflow:hidden}
200-
#sys-msg-textarea{width:100%;border:1px solid var(--input-border);border-radius:6px;padding:10px 12px;font-size:17px;font-family:inherit;background:var(--bg-primary-container);color:var(--text-primary);outline:none;resize:none;line-height:1.5;overflow-y:auto;display:block;transition:height .3s ease}
200+
#sys-msg-textarea{width:100%;border:1px solid var(--input-border);border-radius:6px;padding:10px 12px;font-size:17px;font-family:inherit;background:var(--bg-primary-container);color:#1C1B1F;outline:none;resize:none;line-height:1.5;overflow-y:auto;display:block;transition:height .3s ease}
201201
#sys-msg-textarea:focus{border-color:var(--primary)}
202202

203203
#sys-msg-textarea.collapsed{height: auto; min-height: calc(3 * 1.5em + 20px); max-height: calc(3 * 1.5em + 20px)}
@@ -209,6 +209,13 @@
209209
#sys-msg-textarea.expanded-keyboard{min-height: calc(3 * 1.5em + 20px); max-height: 320px}
210210
#sys-msg-textarea.expanded-full{min-height: calc(3 * 1.5em + 20px); max-height: 320px}
211211

212+
@media (prefers-color-scheme: dark) {
213+
#sys-msg-textarea { color: var(--text-primary); }
214+
.task-input { color: var(--text-primary); }
215+
}
216+
html.dark-mode #sys-msg-textarea { color: var(--text-primary); }
217+
html.dark-mode .task-input { color: var(--text-primary); }
218+
212219
/* ── Chat bubbles ────────────────────────────────────────── */
213220
.bubble-wrap{display:flex;align-items:flex-start;gap:6px;margin:8px 8px}
214221
.bubble-wrap.user-wrap{flex-direction:row-reverse}
@@ -247,7 +254,7 @@
247254
font-size:16px;
248255
font-family:inherit;
249256
background:transparent;
250-
color:var(--text-primary);
257+
color:#1C1B1F;
251258
outline:none;
252259
resize:none;
253260
overflow-y:auto;
@@ -525,7 +532,7 @@
525532
<div id="chat-sys-wrap">
526533
<div class="card-accent">
527534
<div class="row between" style="align-items:flex-start;gap:8px">
528-
<span class="title-md" style="color:var(--text-on-primary-container);padding-top:2px">System Message</span>
535+
<span class="title-md" style="color:var(--primary);padding-top:2px">System Message</span>
529536
<div class="row" style="gap:6px;flex-shrink:0">
530537
<button class="btn btn-outline" onclick="restoreSystemMessage()">Restore<br>System Message</button>
531538
<button class="btn btn-outline" onclick="openDatabasePopup()">Database</button>

0 commit comments

Comments
 (0)