|
@@ -398,7 +398,8 @@ function OrgEditor({ editor, onClose, onSaved }: { editor: Editor; onClose: () =
|
|
|
const regionParentRaw = editor.parent ?? (existing as Region | undefined)?.parent;
|
|
const regionParentRaw = editor.parent ?? (existing as Region | undefined)?.parent;
|
|
|
const regionParent = regionParentRaw && regionParentRaw !== V_ROOT ? regionParentRaw : null;
|
|
const regionParent = regionParentRaw && regionParentRaw !== V_ROOT ? regionParentRaw : null;
|
|
|
const editorTitle = editor.kind === "region" ? editor.id ? "重命名区域" : `新建${regionLevelTitle}` : `${editor.id ? "编辑" : "新建"}${kindTitle}`;
|
|
const editorTitle = editor.kind === "region" ? editor.id ? "重命名区域" : `新建${regionLevelTitle}` : `${editor.id ? "编辑" : "新建"}${kindTitle}`;
|
|
|
- const editorBackdrop = editor.kind === "operator" || editor.kind === "partner" ? "org-centered-backdrop" : "org-editor-modal-backdrop";
|
|
|
|
|
|
|
+ const centeredEditor = editor.kind === "operator" || editor.kind === "partner" || editor.kind === "operations";
|
|
|
|
|
+ const editorBackdrop = centeredEditor ? "org-centered-backdrop" : "org-editor-modal-backdrop";
|
|
|
if (createdInfo) {
|
|
if (createdInfo) {
|
|
|
return <div className={`org-dialog-backdrop ${editorBackdrop}`} role="presentation" onMouseDown={onClose}><section aria-label={`${createdInfo.title}回执`} aria-modal="true" className="org-dialog org-editor-modal" onMouseDown={(e) => e.stopPropagation()} role="dialog">
|
|
return <div className={`org-dialog-backdrop ${editorBackdrop}`} role="presentation" onMouseDown={onClose}><section aria-label={`${createdInfo.title}回执`} aria-modal="true" className="org-dialog org-editor-modal" onMouseDown={(e) => e.stopPropagation()} role="dialog">
|
|
|
<header><div><span className="org-eyebrow">ORGANIZATION / CREATED</span><h2>{createdInfo.title}</h2></div><button aria-label="关闭" className="org-icon-button" onClick={onClose} type="button"><X size={18} /></button></header>
|
|
<header><div><span className="org-eyebrow">ORGANIZATION / CREATED</span><h2>{createdInfo.title}</h2></div><button aria-label="关闭" className="org-icon-button" onClick={onClose} type="button"><X size={18} /></button></header>
|