fix roundings
This commit is contained in:
@@ -213,7 +213,7 @@ function SortableRow({
|
|||||||
<div
|
<div
|
||||||
{...attributes}
|
{...attributes}
|
||||||
{...listeners}
|
{...listeners}
|
||||||
className="min-w-12 min-h-12 transition-colors hover:bg-zinc-200 flex items-center justify-center cursor-move touch-none select-none hover:text-black font-black text-white rounded-bl-xl rounded-tr -xl "
|
className="min-w-12 min-h-12 transition-colors hover:bg-zinc-200 flex items-center justify-center cursor-move touch-none select-none hover:text-black font-black text-white rounded-xs rounded-bl-lg"
|
||||||
>
|
>
|
||||||
<BiDotsVerticalRounded size={24} />
|
<BiDotsVerticalRounded size={24} />
|
||||||
</div>
|
</div>
|
||||||
@@ -223,7 +223,7 @@ function SortableRow({
|
|||||||
onDuplicate(item.id);
|
onDuplicate(item.id);
|
||||||
trigger([{ duration: 25 }], { intensity: 0.7 });
|
trigger([{ duration: 25 }], { intensity: 0.7 });
|
||||||
}}
|
}}
|
||||||
className="min-w-12 min-h-12 transition-colors text-zinc-400 hover:bg-zinc-600/40 hover:text-zinc-300 flex items-center justify-center rounded-l-md"
|
className="min-w-12 min-h-12 transition-colors text-zinc-400 hover:bg-zinc-600/40 hover:text-zinc-300 flex items-center justify-center rounded-xs rounded-tl-md"
|
||||||
>
|
>
|
||||||
<BiCopy size={20} />
|
<BiCopy size={20} />
|
||||||
</button>
|
</button>
|
||||||
@@ -236,7 +236,7 @@ function SortableRow({
|
|||||||
{ delay: 40, duration: 40, intensity: 0.9 },
|
{ delay: 40, duration: 40, intensity: 0.9 },
|
||||||
]);
|
]);
|
||||||
}}
|
}}
|
||||||
className="min-w-12 min-h-12 transition-colors text-red-400 hover:bg-red-600/40 hover:text-red-300 active:bg-red-600/60 flex items-center justify-center rounded-r-md"
|
className="min-w-12 min-h-12 transition-colors text-red-400 hover:bg-red-600/40 hover:text-red-300 active:bg-red-600/60 flex items-center justify-center rounded-xs rounded-br-md"
|
||||||
>
|
>
|
||||||
<BiX size={24} />
|
<BiX size={24} />
|
||||||
</button>
|
</button>
|
||||||
@@ -537,7 +537,7 @@ export function TableEditor({
|
|||||||
</DengiButton>
|
</DengiButton>
|
||||||
<DengiButton onClick={handleRedo} disabled={redoItems.length == 0}>
|
<DengiButton onClick={handleRedo} disabled={redoItems.length == 0}>
|
||||||
<BiRedo />
|
<BiRedo />
|
||||||
</DengiButton>
|
</DengiButton>
|
||||||
<AnimatePresence mode="popLayout">
|
<AnimatePresence mode="popLayout">
|
||||||
{selectedTab == 0 && (
|
{selectedTab == 0 && (
|
||||||
<motion.div exit={{ opacity: 0 }}>
|
<motion.div exit={{ opacity: 0 }}>
|
||||||
@@ -601,7 +601,7 @@ export function TableEditor({
|
|||||||
<SortableContext
|
<SortableContext
|
||||||
items={items.map((item) => item.id)}
|
items={items.map((item) => item.id)}
|
||||||
strategy={verticalListSortingStrategy}
|
strategy={verticalListSortingStrategy}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<AnimatePresence mode={items.length > 0 ? "sync" : "wait"}>
|
<AnimatePresence mode={items.length > 0 ? "sync" : "wait"}>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
@@ -650,21 +650,6 @@ export function TableEditor({
|
|||||||
</div>
|
</div>
|
||||||
</SortableContext>
|
</SortableContext>
|
||||||
</DndContext>
|
</DndContext>
|
||||||
|
|
||||||
{/* <div className="mt-6 flex gap-3">
|
|
||||||
<button
|
|
||||||
onClick={handleAddRow}
|
|
||||||
className="flex-1 bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 active:bg-blue-800"
|
|
||||||
>
|
|
||||||
+ Add Row
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
onClick={handleClear}
|
|
||||||
className="px-6 py-3 rounded-lg border-2 border-gray-700 text-gray-300 font-semibold hover:bg-gray-800 active:bg-gray-700"
|
|
||||||
>
|
|
||||||
Clear All
|
|
||||||
</button>
|
|
||||||
</div> */}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user