From dc32b6def9ee5fdd6446a2bf0ec55031dc7fa96d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 30 Aug 2026 19:47:30 +0000 Subject: [PATCH] fix(editor): move bg color from textarea to overlay so highlighted text is visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The textarea sits above the highlight overlay in paint order (same stacking context, later in DOM). With bg-slate-950 on the textarea, its opaque background painted over the overlay's light text — every code field (Python Transform's script, any format:"code" or expression field) rendered as an apparently-empty black box. Swap: bg-slate-950 moves onto the overlay; the textarea becomes bg-transparent and keeps its border, caret, and selection styling. --- CLAUDE.md | 4 ++++ frontend/src/expr/ExpressionField.tsx | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 2814120..dc67258 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,7 @@ + + # VolcanicCore — project context for Claude sessions VolcanicCore is a self-hosted N8N-style workflow engine (C# backend + React frontend). Operator draws a directed graph of nodes (triggers → actions → terminals) in a browser canvas; each workflow can be activated independently. When active, trigger nodes subscribe/listen and each event fires one execution through the graph. diff --git a/frontend/src/expr/ExpressionField.tsx b/frontend/src/expr/ExpressionField.tsx index 7a268d1..f55697b 100644 --- a/frontend/src/expr/ExpressionField.tsx +++ b/frontend/src/expr/ExpressionField.tsx @@ -83,12 +83,13 @@ export const ExpressionField = forwardRef(function
{tokens.map((t, i) => @@ -117,7 +118,7 @@ export const ExpressionField = forwardRef(function placeholder={placeholder} spellCheck={false} className={ - "relative w-full rounded bg-slate-950 border border-slate-800 " + + "relative w-full rounded bg-transparent border border-slate-800 " + "px-3 py-2 outline-none focus:border-brand-500 " + "font-mono text-sm leading-5 resize-none " + "text-transparent caret-slate-100 selection:text-slate-100 selection:bg-brand-600/40"