diff --git a/src/ui/OnboardingTour/TourTooltip.tsx b/src/ui/OnboardingTour/TourTooltip.tsx index d56bd30..418f655 100644 --- a/src/ui/OnboardingTour/TourTooltip.tsx +++ b/src/ui/OnboardingTour/TourTooltip.tsx @@ -27,6 +27,12 @@ function calculateTooltipPosition( const centerY = top + height / 2 switch (placement) { + case 'center': + // Center in viewport + return { + top: window.innerHeight / 2 - tooltipHeight / 2, + left: window.innerWidth / 2 - tooltipWidth / 2 + } case 'top': return { top: top - tooltipHeight - gap, left: centerX - tooltipWidth / 2 } case 'bottom': @@ -118,8 +124,23 @@ export function TourTooltip({ return ( <> - {/* Spotlight overlay with cutout */} - {targetRect && ( + {/* Spotlight overlay with cutout (or full overlay for noSpotlight steps) */} + {step.noSpotlight ? ( + // Full overlay without cutout for intro/welcome steps +
+ ) : targetRect && (