fix: Use theme-aware code color in file modal

- Replace hardcoded #a5f3fc (bright blue) with var(--code-text)
- Now respects dark mode (#d4d4d4) and light mode (#404040)
- Fixes unreadable text in file preview modal
This commit is contained in:
pdyde 2026-02-21 17:14:06 +01:00
parent 559eca4d61
commit 85976afa09

View file

@ -193,7 +193,7 @@
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<pre id="fileModalContent" style="background:var(--bg-base);color:#a5f3fc;
<pre id="fileModalContent" style="background:var(--bg-base);color:var(--code-text);
border-radius:var(--radius-sm);padding:1.1rem;white-space:pre-wrap;
word-break:break-word;max-height:70vh;overflow-y:auto;font-size:.83rem;
border:1px solid var(--border);font-family:'JetBrains Mono',monospace;">Wird geladen…</pre>