데스크톱 앱 팝업에서 팝업안뜨는 문제수정
This commit is contained in:
@@ -1794,20 +1794,20 @@ html.desktop-client .tmb-logo-version {
|
|||||||
|
|
||||||
/* 사용자 정의 탭 편집 */
|
/* 사용자 정의 탭 편집 */
|
||||||
.ind-tab-editor-overlay {
|
.ind-tab-editor-overlay {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 10;
|
z-index: 2100;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding: 16px;
|
||||||
background: rgba(0, 0, 0, 0.55);
|
background: rgba(0, 0, 0, 0.55);
|
||||||
border-radius: inherit;
|
|
||||||
}
|
}
|
||||||
.ind-tab-editor {
|
.ind-tab-editor {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: min(420px, calc(100% - 24px));
|
width: min(420px, calc(100vw - 24px));
|
||||||
max-height: calc(100% - 24px);
|
max-height: calc(100vh - 32px);
|
||||||
background: var(--bg2);
|
background: var(--bg2);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React, { useEffect, useMemo, useState } from 'react';
|
||||||
|
import ReactDOM from 'react-dom';
|
||||||
import { INDICATOR_REGISTRY, type IndicatorDef } from '../utils/indicatorRegistry';
|
import { INDICATOR_REGISTRY, type IndicatorDef } from '../utils/indicatorRegistry';
|
||||||
import { MAIN_INDICATOR_LABELS } from '../utils/indicatorMainTab';
|
import { MAIN_INDICATOR_LABELS } from '../utils/indicatorMainTab';
|
||||||
|
|
||||||
@@ -76,7 +77,7 @@ const IndicatorCustomTabEditor: React.FC<IndicatorCustomTabEditorProps> = ({
|
|||||||
onSave(trimmed, ordered);
|
onSave(trimmed, ordered);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return ReactDOM.createPortal(
|
||||||
<div
|
<div
|
||||||
className="ind-tab-editor-overlay"
|
className="ind-tab-editor-overlay"
|
||||||
onMouseDown={e => { if (e.target === e.currentTarget) onClose(); }}
|
onMouseDown={e => { if (e.target === e.currentTarget) onClose(); }}
|
||||||
@@ -163,7 +164,8 @@ const IndicatorCustomTabEditor: React.FC<IndicatorCustomTabEditorProps> = ({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>,
|
||||||
|
document.body,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user