Lege ein Dokument nur auf dem Dokument-Symbol ab, damit der Pfeil keine Zuordnung mehr ausloest und der Dialog erscheint.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9b9a09b97c
commit
3f60901b71
2 files changed
+38
-26
No files matched your search
@@ -453,7 +453,7 @@ function MenuPopover({ open, anchorRef, onClose, label, children, sheet = false
|
||||
);
|
||||
}
|
||||
|
||||
export function DirectionControl({ direction = "", title, disabled = false, onChange, dropId = "" }) {
|
||||
export function DirectionControl({ direction = "", title, disabled = false, onChange }) {
|
||||
const anchorRef = useRef(null);
|
||||
const [open, setOpen] = useState(false);
|
||||
const known = directionWord(direction);
|
||||
@@ -465,12 +465,11 @@ export function DirectionControl({ direction = "", title, disabled = false, onCh
|
||||
anchorRef.current?.focus();
|
||||
}
|
||||
return (
|
||||
<span className={`direction-column${direction === "local" ? " direction-column--local" : ""}`} data-use-drop={dropId || undefined}>
|
||||
<span className={`direction-column${direction === "local" ? " direction-column--local" : ""}`}>
|
||||
<button
|
||||
ref={anchorRef}
|
||||
type="button"
|
||||
className="direction-trigger"
|
||||
data-use-drop={dropId || undefined}
|
||||
aria-label={name}
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={open}
|
||||
@@ -900,6 +899,7 @@ function EntryMark({ element, context, assignable = false, dropId = "", hot = fa
|
||||
<TypeGlyph name={symbol} tone="dark" />
|
||||
</>
|
||||
)}
|
||||
{dropId ? <span className="assign-hit" data-assign-drop={dropId}>Ablegen</span> : null}
|
||||
{url ? (
|
||||
<span className="entry-mark__badge">
|
||||
<TypeGlyph name="image" tone="light" size={14} />
|
||||
@@ -2215,7 +2215,7 @@ export function ContentBoard({
|
||||
className={rowClass}
|
||||
onPointerDown={(event) => {
|
||||
if (!canEdit || pending || picking || event.button !== 0) return;
|
||||
if (event.target.closest("button, input, textarea, select, label, .use-chip, .unit-detail")) return;
|
||||
if (event.target.closest("button, input, textarea, select, label, .use-chip, .unit-detail, .entry-mark")) return;
|
||||
beginCarryPointer(event, {
|
||||
source: "list",
|
||||
elementId: element.id,
|
||||
@@ -2245,7 +2245,6 @@ export function ContentBoard({
|
||||
direction={directionValue(binding.communication)}
|
||||
title={element.title}
|
||||
disabled={pending}
|
||||
dropId={binding.id}
|
||||
onChange={(value) => saveRowDirection(binding, value)}
|
||||
/>
|
||||
) : (
|
||||
@@ -2269,8 +2268,15 @@ export function ContentBoard({
|
||||
<EntryMark
|
||||
element={element}
|
||||
context={context}
|
||||
assignable={canEdit && !pending && !picking}
|
||||
dropId={canEdit && (!carrying || (binding.id !== carrying.bindingId && binding.id !== carrying.hostBindingId)) ? binding.id : ""}
|
||||
hot={indicator?.kind === "use" && indicator.bindingId === binding.id}
|
||||
onAssignStart={(event) => beginCarryPointer(event, {
|
||||
source: "list",
|
||||
elementId: element.id,
|
||||
bindingId: binding.id,
|
||||
title: element.title,
|
||||
})}
|
||||
/>
|
||||
<UnitDetail
|
||||
binding={binding}
|
||||
|
||||
+27
-21
@@ -1364,20 +1364,36 @@ button.unit-switch[aria-expanded="true"] { color: var(--brand); }
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
body.is-carrying, body.is-carrying * { user-select: none !important; cursor: grabbing; }
|
||||
body.is-carrying .direction-column { pointer-events: none; }
|
||||
body.is-carrying .entry-mark[data-assign-drop] {
|
||||
box-shadow: inset 0 0 0 2px var(--accent);
|
||||
background: var(--accent-light);
|
||||
cursor: copy;
|
||||
}
|
||||
body.is-carrying .entry-mark[data-assign-drop]::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -8px;
|
||||
}
|
||||
.entry-mark.is-assign-hot {
|
||||
box-shadow: inset 0 0 0 3px var(--accent);
|
||||
z-index: 2;
|
||||
outline: 3px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
background: #fff;
|
||||
}
|
||||
.assign-hit {
|
||||
display: none;
|
||||
}
|
||||
body.is-carrying .assign-hit {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
top: -8px;
|
||||
bottom: -8px;
|
||||
width: 148px;
|
||||
z-index: 3;
|
||||
border-radius: 8px;
|
||||
color: var(--brand);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 16px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.entry-mark.is-assign-hot,
|
||||
body.is-carrying .entry-mark.is-assign-hot .assign-hit {
|
||||
background: var(--accent-light);
|
||||
}
|
||||
.content-section.is-release-target {
|
||||
background: var(--accent-light);
|
||||
box-shadow: inset 0 0 0 2px var(--accent);
|
||||
@@ -1399,7 +1415,6 @@ body.is-carrying .entry-mark[data-assign-drop]::after {
|
||||
text-align: left;
|
||||
}
|
||||
.release-lane.is-hot { border-style: solid; box-shadow: inset 0 0 0 2px var(--accent); }
|
||||
.preview-row.is-use-target { outline: 2px solid var(--accent); outline-offset: -2px; }
|
||||
.contents.is-release-target { box-shadow: inset 0 0 0 2px var(--accent); }
|
||||
.release-mark {
|
||||
position: sticky;
|
||||
@@ -1416,15 +1431,6 @@ body.is-carrying .entry-mark[data-assign-drop]::after {
|
||||
text-align: left;
|
||||
}
|
||||
.use-editions summary { cursor: pointer; color: var(--text2); font-size: 13px; text-align: left; }
|
||||
.preview-row.is-use-target {
|
||||
background: var(--accent-light);
|
||||
box-shadow: inset 3px 0 0 var(--accent);
|
||||
}
|
||||
.preview-row.is-use-target .direction-trigger,
|
||||
.preview-row.is-use-target .entry-mark {
|
||||
box-shadow: inset 0 0 0 2px var(--accent);
|
||||
background: #fff;
|
||||
}
|
||||
.pick-tree-dialog { justify-items: start; text-align: left; gap: 8px; }
|
||||
.pick-tree__lead { margin: 0; text-align: left; font-size: 13px; font-weight: 400; color: var(--text2); }
|
||||
.pick-tree__find { width: 100%; font-size: 13px; font-weight: 500; gap: 4px; text-align: left; }
|
||||
|
||||
Reference in new issue
Block a user