Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(theme): make inline code readable on Lumen Glass Day theme
Adam Eivyec63305f2b1f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 5213efe7e1..3a37d4026d 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -46,6 +46,8 @@## Fixed+- **Inline code in CoS task summaries readable on day themes.** `MarkdownOutput.jsx` rendered inline code (`` `8a440037` ``, `` `<input>` ``, `` `flex-wrap` ``, etc.) and fenced code blocks with a hardcoded `text-cyan-400` foreground on a `bg-port-bg` background. In daytime themes — most visibly Lumen Glass Day — `bg-port-bg` is cream/white, leaving bright cyan-on-cream that was unreadable in agent task-summary cards. Both `<code>` styles now use `text-port-accent`, which is sized per theme for legible contrast (`#0891b2` on cream in Lumen Glass Day, `#1d4ed8` on white in Drafting Paper, `#0a7a4a` on cream in Phosphor Paper) and continues to be the bright cyan/blue/green accent in dark themes.+- **Settings tabs reflow cleanly on mobile.** The Timezone row in `Settings → General` (input + Save + "Use detected: <long-tz>") used to overflow a 375 px viewport because everything was forced into a single `flex` row with a `max-w-xs` input that filled the screen and pushed the buttons off the right edge. The row now stacks vertically below `sm` and the detected-tz button truncates instead of breaking layout. Same family of fix applied across the rest of the Settings panes — `Voice`, `MortalLoom`, `Telegram`, `Backup`, `Database` — where action-button rows now wrap (`flex-wrap`) and inherit a 40 px `min-h` so buttons stay tappable when they reflow onto a second line. Card padding uniformly drops from `p-6` to `p-4 sm:p-6` so 16 px is reclaimed on each side at mobile widths. VoiceTab's checkbox-with-helper rows (Enable voice mode, Show floating widget, Use personality, Enable tools, CoreML encoder) used to squish the gray hint inline next to the main label and produced a wall of vertically-misaligned text on a phone — they now stack the hint below the main label on mobile and inline it on `sm+`. The MortalLoom Enabled toggle's hint similarly drops to a second row on phone widths instead of pushing the toggle off-screen. The Telegram bot-token reveal/hide button gains a 40 px tap target, and the BackupTab "+" exclude-path button matches.- **CoS Schedule tab — agent-option toggles now respond to taps on iPhone.** The per-task "Agent Options" rows in `/cos/schedule` rendered a `<ToggleSwitch>` (which is a `<button>`) inside another `<button>`, producing invalid nested-button HTML. iOS Safari refuses to dispatch tap events reliably for nested interactive controls, so tapping the toggle (or the row) sometimes did nothing. `ToggleSwitch` now supports a `decorative` prop that renders as a `<span>` (with `aria-hidden`) so it can be used purely visually inside another button without breaking the click target. The Schedule tab's Agent Options use it; the outer button's existing `aria-pressed` continues to communicate state to assistive tech.diff --git a/client/src/components/cos/MarkdownOutput.jsx b/client/src/components/cos/MarkdownOutput.jsxindex b35f02bee9..39987dc080 100644--- a/client/src/components/cos/MarkdownOutput.jsx+++ b/client/src/components/cos/MarkdownOutput.jsx@@ -11,7 +11,7 @@ function parseInline(text) {if (m.index > last) parts.push(text.slice(last, m.index));const s = m[0];if (s[0] === '`') {- parts.push(<code key={m.index} className="bg-port-bg px-1 py-0.5 rounded text-cyan-400 font-mono text-xs break-all">{s.slice(1, -1)}</code>);+ parts.push(<code key={m.index} className="bg-port-bg px-1 py-0.5 rounded text-port-accent font-mono text-xs break-all">{s.slice(1, -1)}</code>);} else if (s.startsWith('**')) {parts.push(<strong key={m.index} className="text-white font-semibold">{s.slice(2, -2)}</strong>);} else if (s[0] === '*' || s[0] === '_') {@@ -57,7 +57,7 @@ function parseBlocks(md) {let end = i + 1;while (end < lines.length && !lines[end].startsWith('```')) end++;const code = lines.slice(i + 1, end).join('\n');- blocks.push(<pre key={i} className="my-1 overflow-x-auto"><code className="block bg-port-bg rounded p-2 my-1 text-xs font-mono text-cyan-400 overflow-x-auto whitespace-pre-wrap break-all">{code}</code></pre>);+ blocks.push(<pre key={i} className="my-1 overflow-x-auto"><code className="block bg-port-bg rounded p-2 my-1 text-xs font-mono text-port-accent overflow-x-auto whitespace-pre-wrap break-all">{code}</code></pre>);i = end + 1; continue;}