このコミットが含まれているのは:
2026-07-07 23:04:19 +09:00
コミット 347a0ebbba
+4 -4
ファイルの表示
@@ -7,7 +7,7 @@ import { DndContext,
useDroppable, useDroppable,
useSensor, useSensor,
useSensors } from '@dnd-kit/core' useSensors } from '@dnd-kit/core'
import { restrictToWindowEdges } from '@dnd-kit/modifiers' import { restrictToWindowEdges, snapCenterToCursor } from '@dnd-kit/modifiers'
import { useQueryClient } from '@tanstack/react-query' import { useQueryClient } from '@tanstack/react-query'
import { motion } from 'framer-motion' import { motion } from 'framer-motion'
import { useEffect, useMemo, useRef, useState } from 'react' import { useEffect, useMemo, useRef, useState } from 'react'
@@ -359,8 +359,8 @@ const TagDetailSidebar: FC<Props> = ({ className, post, sp }) => {
<TagSearch/> <TagSearch/>
<DndContext <DndContext
sensors={sensors} sensors={sensors}
collisionDetection={sp ? tagCollisionDetection : undefined} collisionDetection={tagCollisionDetection}
measuring={sp ? alwaysMeasureDroppables : undefined} measuring={alwaysMeasureDroppables}
onDragStart={e => { onDragStart={e => {
if (e.active.data.current?.kind === 'tag') if (e.active.data.current?.kind === 'tag')
{ {
@@ -489,7 +489,7 @@ const TagDetailSidebar: FC<Props> = ({ className, post, sp }) => {
</ul> </ul>
</motion.div>)} </motion.div>)}
<DragOverlay adjustScale={false}> <DragOverlay adjustScale={false} modifiers={[snapCenterToCursor]}>
<div className="pointer-events-none"> <div className="pointer-events-none">
{activeTagDrag != null && (() => { {activeTagDrag != null && (() => {
const tag = findTag (tags, activeTagDrag.tagId) const tag = findTag (tags, activeTagDrag.tagId)