mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 08:48:26 +02:00
Add reorderable tabs with global persistence (#347)
This commit is contained in:
@@ -224,7 +224,7 @@ export function PairEditor({
|
||||
|
||||
const side = computeSideForDragMove(overPair.id, e);
|
||||
const overIndex = pairs.findIndex((p) => p.id === overId);
|
||||
const hoveredIndex = overIndex + (side === 'above' ? 0 : 1);
|
||||
const hoveredIndex = overIndex + (side === 'before' ? 0 : 1);
|
||||
|
||||
setHoveredIndex(hoveredIndex);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user