fix(webui): let the dashboard page scroll while the pointer is over a card

Every tile was a nested scrollport that swallowed the wheel even when its contents already fit. Clip the card instead and leave inner lists to scroll themselves.
This commit is contained in:
DrSmoothl
2026-09-21 16:27:49 +08:00
parent 51c0ffab74
commit d0a1b0e804
@@ -172,7 +172,9 @@ export function DashboardGrid({
)}
</>
)}
<div className={cn('h-full w-full overflow-auto overscroll-contain rounded-xl', editing && 'pointer-events-none select-none')}>
{/* Clip to the card radius. A tile-wide scrollport would eat the
page wheel even when the widget already fits on screen. */}
<div className={cn('h-full w-full overflow-hidden rounded-xl', editing && 'pointer-events-none select-none')}>
{renderWidget(b)}
</div>
</div>,