External embed: fix code-dialog modal visibility

openEmbedCodeDialog set modal.style.display = '' to show the
modal, which falls back to the CSS default `.modal { display:
none }` — so the dialog never appeared. Every other modal in the
app sets `'flex'` explicitly. Matching that pattern.

Also fixes the symptom "Embed button doesn't work / doesn't
copy anything" — the dialog was always present in the DOM but
invisible, so the copy buttons inside it couldn't be reached.
This commit is contained in:
thePR0M3TH3AN committed 2026-06-01 10:38:33 -04:00
1 parent 21725b35ff
commit 52c8539257
1 file changed
+1 -1
+1 -1
View File
@@ -21782,7 +21782,7 @@
const modal = $('embedCodeModal');
if (!modal) return;
modal._row = row;
modal.style.display = '';
modal.style.display = 'flex';
modal.setAttribute('aria-hidden', 'false');
bringModalToFront?.(modal);
// Reset to sensible defaults each open.