and or 켠트롤 삭제버튼 위치 수정
This commit is contained in:
@@ -259,6 +259,8 @@ export const LogicGateNode = memo(function LogicGateNode({ id, data, selected }:
|
|||||||
canSourceConnect={d.canSourceConnect !== false}
|
canSourceConnect={d.canSourceConnect !== false}
|
||||||
canTargetConnect={d.canTargetConnect !== false}
|
canTargetConnect={d.canTargetConnect !== false}
|
||||||
/>
|
/>
|
||||||
|
<button type="button" className="se-flow-del se-flow-del--gate" title="삭제" onClick={() => d.onDelete?.(id)}>×</button>
|
||||||
|
<div className="se-flow-gate-body">
|
||||||
<div className="se-flow-gate-head">
|
<div className="se-flow-gate-head">
|
||||||
{node.type === 'AND' || node.type === 'OR' ? (
|
{node.type === 'AND' || node.type === 'OR' ? (
|
||||||
<LogicGateOpToggle
|
<LogicGateOpToggle
|
||||||
@@ -375,7 +377,7 @@ export const LogicGateNode = memo(function LogicGateNode({ id, data, selected }:
|
|||||||
{(node.children ?? []).length === 0 && (
|
{(node.children ?? []).length === 0 && (
|
||||||
<span className="se-flow-gate-hint">조건을 드롭하세요</span>
|
<span className="se-flow-gate-hint">조건을 드롭하세요</span>
|
||||||
)}
|
)}
|
||||||
<button type="button" className="se-flow-del" title="삭제" onClick={() => d.onDelete?.(id)}>×</button>
|
</div>
|
||||||
{settingsOpen && isStochPair && node.stochPair && (
|
{settingsOpen && isStochPair && node.stochPair && (
|
||||||
<StochPairNodeSettings
|
<StochPairNodeSettings
|
||||||
secondaryIndicator={node.stochPair.secondaryIndicatorType}
|
secondaryIndicator={node.stochPair.secondaryIndicatorType}
|
||||||
|
|||||||
@@ -1139,6 +1139,12 @@
|
|||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
.se-flow-del--gate {
|
||||||
|
position: absolute;
|
||||||
|
top: 6px;
|
||||||
|
right: 6px;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
.se-flow-start-dot {
|
.se-flow-start-dot {
|
||||||
width: 8px; height: 8px; border-radius: 50%;
|
width: 8px; height: 8px; border-radius: 50%;
|
||||||
background: var(--se-node-start-accent, var(--se-gold));
|
background: var(--se-node-start-accent, var(--se-gold));
|
||||||
@@ -1146,9 +1152,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.se-flow-node--logic {
|
.se-flow-node--logic {
|
||||||
|
position: relative;
|
||||||
background: var(--se-node-logic-bg);
|
background: var(--se-node-logic-bg);
|
||||||
border: 1px solid var(--se-gate-color, var(--se-accent));
|
border: 1px solid var(--se-gate-color, var(--se-accent));
|
||||||
padding: 12px 16px;
|
padding: 28px 16px 12px;
|
||||||
min-width: 110px;
|
min-width: 110px;
|
||||||
box-shadow: 0 0 20px color-mix(in srgb, var(--se-accent) 20%, transparent);
|
box-shadow: 0 0 20px color-mix(in srgb, var(--se-accent) 20%, transparent);
|
||||||
}
|
}
|
||||||
@@ -1157,10 +1164,18 @@
|
|||||||
box-shadow: 0 0 20px color-mix(in srgb, var(--se-sell) 15%, transparent);
|
box-shadow: 0 0 20px color-mix(in srgb, var(--se-sell) 15%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.se-flow-gate-body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
.se-flow-gate-head {
|
.se-flow-gate-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
.se-logic-gate-toggle {
|
.se-logic-gate-toggle {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -1176,7 +1191,13 @@
|
|||||||
color: var(--se-accent);
|
color: var(--se-accent);
|
||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.06em;
|
||||||
}
|
}
|
||||||
.se-flow-gate-hint { font-size: 0.62rem; color: var(--se-text-dim); display: block; margin-top: 4px; }
|
.se-flow-gate-hint {
|
||||||
|
font-size: 0.62rem;
|
||||||
|
color: var(--se-text-dim);
|
||||||
|
display: block;
|
||||||
|
margin-top: 2px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.se-flow-node--cond {
|
.se-flow-node--cond {
|
||||||
padding: 10px 14px;
|
padding: 10px 14px;
|
||||||
|
|||||||
Reference in New Issue
Block a user