mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-11-04 04:30:40 +00:00
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:
1 parent
21725b35ff
commit
52c8539257
1 file changed
+1
-1
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user