From ba01b4acaca7b8267bcd945e33746971f8f141d7 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 3 Apr 2026 14:55:44 +0200 Subject: [PATCH] fix: mobile day detail opens on single tap instead of double-click (#311) --- client/src/components/Planner/DayPlanSidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index a5328b2c..3b23efc2 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -879,7 +879,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({ const placeItems = merged.filter(i => i.type === 'place') return ( -
+
{/* Tages-Header — akzeptiert Drops aus der PlacesSidebar */}
{ onSelectDay(day.id); if (onDayDetail) onDayDetail(day) }} @@ -896,6 +896,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({ outline: isDragTarget ? '2px dashed rgba(17,24,39,0.25)' : 'none', outlineOffset: -2, borderRadius: isDragTarget ? 8 : 0, + touchAction: 'manipulation', }} onMouseEnter={e => { if (!isSelected && !isDragTarget) e.currentTarget.style.background = 'var(--bg-tertiary)' }} onMouseLeave={e => { if (!isSelected) e.currentTarget.style.background = isDragTarget ? 'rgba(17,24,39,0.07)' : 'transparent' }}