fix(site): restrict pinned chats drag to vertical-only (#26050)

This commit is contained in:
Jake Howell
2026-06-05 20:39:34 +10:00
committed by GitHub
parent 245a1944ea
commit 97038ee2ef
@@ -519,6 +519,13 @@ export const ChatsPanel: FC<ChatsPanelProps> = ({
<DndContext
sensors={sensors}
collisionDetection={closestCenter}
modifiers={[
// Restrict the drag to the y-axis only
({ transform }) => ({
...transform,
x: 0,
}),
]}
onDragEnd={handleDragEnd}
>
<SortableContext