diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 49468536..14a0ba8d 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -401,35 +401,33 @@ export default function App() { 📥 -
e.preventDefault()} - onDrop={(e) => - handleDrop(e, (t) => - setTabs((tabs) => - tabs.map((tab) => - tab.id === active ? { ...tab, xslt: stripParamBlock(t) } : tab, + e.preventDefault(), + onDrop: (e) => + handleDrop(e, (t) => + setTabs((tabs) => + tabs.map((tab) => + tab.id === active ? { ...tab, xslt: stripParamBlock(t) } : tab, + ), ), - ) + ), + }} + value={editorFocused ? activeTab.xslt : injectParamBlock(activeTab.xslt, activeTab.params)} + onChange={(v) => + setTabs((tabs) => + tabs.map((tab) => + tab.id === active ? { ...tab, xslt: stripParamBlock(v || "") } : tab, + ), ) } - > - - setTabs((tabs) => - tabs.map((tab) => - tab.id === active ? { ...tab, xslt: stripParamBlock(v || "") } : tab, - ), - ) - } - onFocus={() => setEditorFocused(true)} - onBlur={() => setEditorFocused(false)} - options={{ minimap: { enabled: false }, automaticLayout: true }} - /> -
+ onFocus={() => setEditorFocused(true)} + onBlur={() => setEditorFocused(false)} + options={{ minimap: { enabled: false }, automaticLayout: true }} + />
diff --git a/frontend/src/style.css b/frontend/src/style.css index 5a482bb8..2bb49ee6 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -85,11 +85,6 @@ body, min-height: 0; } -.editor-area { - flex: 1 1 auto; - height: 100%; - min-height: 0; -} .result { height: 50vh;