From b0986f88b33a8811fecb9f92a925d0645edf3066 Mon Sep 17 00:00:00 2001 From: yekta Date: Tue, 20 Oct 2026 07:14:46 +0000 Subject: [PATCH] web: fade card drag shadows and keep the drop outline until it lands - The grabbed card's shadow now fades in when it's picked up and fades out during the drop animation. Before, it appeared and disappeared all at once. - The drop animation no longer runs dnd-kit's default side effects. Instead, it marks the source card with data-drag-source until the animation finishes, so the dashed outline stays in place until the card reaches it. - Grabbed cards now shrink to 96% instead of 97%. - Mouse drags now start after a 250ms hold instead of 300ms, the same as touch. --- .../src/components/service/service-card.tsx | 5 ++++- .../components/service/service-group-card.tsx | 5 ++++- .../src/components/sortable/card-sorting.ts | 19 +++++++++++++++---- apps/web/src/components/team/project-card.tsx | 5 +++-- apps/web/src/globals.css | 8 +++++++- 5 files changed, 33 insertions(+), 9 deletions(-) diff --git a/apps/web/src/components/service/service-card.tsx b/apps/web/src/components/service/service-card.tsx index dc029a99..b7ed2bc8 100644 --- a/apps/web/src/components/service/service-card.tsx +++ b/apps/web/src/components/service/service-card.tsx @@ -173,7 +173,10 @@ export default function ServiceCard({ )} > {/* The shadow wraps the volumes too, they would cover it on the card */} -
+
{isPlaceholder ? ( ); @@ -182,7 +182,7 @@ function ConditionalButton({ }} error={error} > - @@ -192,6 +192,7 @@ function ConditionalButton({ return (