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}
|
||||
|
||||
Reference in new issue
Block a user