mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Merge 167c8eee31 into 53fb175855
This commit is contained in:
commit
bde3cceaf5
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { useT } from '../i18n';
|
||||
import { copyToClipboard } from '../lib/copy-to-clipboard';
|
||||
import {
|
||||
|
|
@ -468,7 +469,7 @@ export function PreviewModal({
|
|||
const showTemplateShareMenu = !isCustomView || Boolean(shareTarget?.url);
|
||||
const canOpenTemplateShareMenu = canExportFiles || Boolean(previewShareUrl);
|
||||
|
||||
return (
|
||||
const modalContent = (
|
||||
<div className="ds-modal-backdrop" role="dialog" aria-modal="true" aria-label={`${title} preview`}>
|
||||
<div className={`ds-modal ${fullscreen ? 'ds-modal-fullscreen' : ''}`}>
|
||||
<header className="ds-modal-header">
|
||||
|
|
@ -927,4 +928,6 @@ export function PreviewModal({
|
|||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
return createPortal(modalContent, document.body);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue