@kyro-cms/admin 0.10.19 → 0.10.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/components/fields/BlocksField.tsx +4 -9
package/package.json
CHANGED
|
@@ -225,18 +225,12 @@ const SortableBlockComponent = ({
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
return (
|
|
228
|
-
<div ref={setNodeRef} style={style} className="relative group
|
|
228
|
+
<div ref={setNodeRef} style={style} className="relative group mb-2">
|
|
229
229
|
<div
|
|
230
|
-
className="hidden md:absolute left-0 top-1/2 -translate-y-1/2 p-1.5 cursor-grab active:cursor-grabbing text-[var(--kyro-text-muted)] opacity-0 group-hover:opacity-100 transition-opacity hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
231
230
|
{...attributes}
|
|
232
231
|
{...listeners}
|
|
233
|
-
>
|
|
234
|
-
<GripVertical className="w-4 h-4" />
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
|
-
<div
|
|
238
232
|
onClick={() => setEditingBlockId(block.id as string)}
|
|
239
|
-
className={`flex items-center gap-3 p-3 bg-[var(--kyro-bg-secondary)] rounded-lg border transition-colors cursor-
|
|
233
|
+
className={`flex items-center gap-3 p-3 bg-[var(--kyro-bg-secondary)] rounded-lg border transition-colors cursor-grab active:cursor-grabbing ${isEditing
|
|
240
234
|
? `${(blockTheme[block.type as string] || blockTheme.default).border} bg-[var(--kyro-primary)]/5`
|
|
241
235
|
: "border-[var(--kyro-border)] hover:border-[var(--kyro-primary)]/50 hover:bg-[var(--kyro-primary)]/5"
|
|
242
236
|
}`}
|
|
@@ -543,7 +537,8 @@ export const BlocksField: React.FC<BlocksFieldProps> = ({
|
|
|
543
537
|
const sensors = useSensors(
|
|
544
538
|
useSensor(PointerSensor, {
|
|
545
539
|
activationConstraint: {
|
|
546
|
-
|
|
540
|
+
delay: 200,
|
|
541
|
+
tolerance: 5,
|
|
547
542
|
},
|
|
548
543
|
}),
|
|
549
544
|
useSensor(KeyboardSensor),
|