diff --git a/electron/main.cjs b/electron/main.cjs
index 8484d0d9..2d7452f7 100644
--- a/electron/main.cjs
+++ b/electron/main.cjs
@@ -345,9 +345,10 @@ function createWindow() {
contextIsolation: true,
nodeIntegration: false,
sandbox: true,
- // Packaged shell is loopback `http://127.0.0.1` → public HTTPS APIs; Chromium CORS blocks
- // renderer `fetch` unless disabled for this window (IPC + net.fetch still used as defense).
- webSecurity: !app.isPackaged
+ // Always on: CORS, CSP, and mixed-content protections. Loopback packaged shell still reaches
+ // public APIs via `relaxCorsForRendererSubresources()` (media/HLS) and `imwald:backend-request`
+ // IPC (`electronAwareFetch` for translate + LanguageTool).
+ webSecurity: true
}
})
diff --git a/src/components/AdvancedEventLab/AdvancedEventLabDialog.tsx b/src/components/AdvancedEventLab/AdvancedEventLabDialog.tsx
index 1b106e33..01a95769 100644
--- a/src/components/AdvancedEventLab/AdvancedEventLabDialog.tsx
+++ b/src/components/AdvancedEventLab/AdvancedEventLabDialog.tsx
@@ -3,7 +3,6 @@ import { Input } from '@/components/ui/input'
import {
Dialog,
DialogContent,
- DialogFooter,
DialogHeader,
DialogTitle
} from '@/components/ui/dialog'
@@ -644,7 +643,7 @@ export default function AdvancedEventLabDialog({
'.cm-scroller': { overflow: 'auto', minHeight: 0 },
// Large dvh mins fight stacked flex/grid rows and overflow onto the preview; host + row cap height instead.
'.cm-content': {
- minHeight: '11rem',
+ minHeight: '12rem',
fontFamily: 'var(--font-mono, ui-monospace, monospace)'
},
// LanguageTool hits: drop default thin SVG underline, use thick wavy line (see `LT_GRAMMAR_MARK_CLASS`).
@@ -878,203 +877,30 @@ export default function AdvancedEventLabDialog({
{t('Advanced event lab')}
-
-
- {isLanguageToolConfigured() ? (
-
-
-
-
- ) : null}
- {isTranslateConfigured() ? (
-
- {translateLoad === 'idle' || translateLoad === 'loading' ? (
-
{t('Advanced lab translation languages loading')}
- ) : null}
- {translateLoad === 'ready' ? (
-
-
-
-
-
-
-
-
-
-
-
- ) : null}
- {translateLoad === 'empty' ? (
-
{t('Advanced lab translation languages empty')}
- ) : null}
- {translateLoad === 'error' ? (
-
{t('Advanced lab translation languages error')}
- ) : null}
-
- ) : null}
- {contextEventId && isTranslateConfigured() ? (
-