From f8e8d8fbb0142adb96500e2464f9691e8f9f7cb2 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 7 Jul 2026 22:35:09 +0900 Subject: [PATCH] #268 --- .../components/DraggableDroppableTagRow.tsx | 2 +- frontend/src/components/TagDetailSidebar.tsx | 21 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/DraggableDroppableTagRow.tsx b/frontend/src/components/DraggableDroppableTagRow.tsx index 2f1451a..ea1eda4 100644 --- a/frontend/src/components/DraggableDroppableTagRow.tsx +++ b/frontend/src/components/DraggableDroppableTagRow.tsx @@ -65,7 +65,7 @@ const DraggableDroppableTagRow: FC = ({ tag, nestLevel, pathKey, parentTa data: { kind: 'tag', tagId: tag.id } }) const style: CSSProperties = { transform: CSS.Translate.toString (transform), - visibility: dragging && !(sp) ? 'hidden' : 'visible' } + visibility: dragging ? 'hidden' : 'visible' } return (
{ - const byPointer = pointerWithin (args) - return byPointer.length > 0 ? byPointer : rectIntersection (args) + return pointerWithin (args) } const alwaysMeasureDroppables = { @@ -491,15 +489,14 @@ const TagDetailSidebar: FC = ({ className, post, sp }) => { )} - {!(sp) && ( - -
- {activeTagDrag != null && (() => { - const tag = findTag (tags, activeTagDrag.tagId) - return tag && - }) ()} -
-
)} + +
+ {activeTagDrag != null && (() => { + const tag = findTag (tags, activeTagDrag.tagId) + return tag && + }) ()} +
+
) }