diff --git a/frontend/src/components/TagDetailSidebar.tsx b/frontend/src/components/TagDetailSidebar.tsx index 1168e30..965cebc 100644 --- a/frontend/src/components/TagDetailSidebar.tsx +++ b/frontend/src/components/TagDetailSidebar.tsx @@ -7,7 +7,7 @@ import { DndContext, useDroppable, useSensor, 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 { motion } from 'framer-motion' import { useEffect, useMemo, useRef, useState } from 'react' @@ -359,8 +359,8 @@ const TagDetailSidebar: FC = ({ className, post, sp }) => { { if (e.active.data.current?.kind === 'tag') { @@ -489,7 +489,7 @@ const TagDetailSidebar: FC = ({ className, post, sp }) => { )} - +
{activeTagDrag != null && (() => { const tag = findTag (tags, activeTagDrag.tagId)