fix: Multiple ADHD/Focus Tools fixes
continuous-integration/drone/push Build is passing

Switch/Checkbox Styling:
- Exclude switches and checkboxes from larger-targets CSS
- Fix checkbox square aspect ratio when ADHD mode enabled
- Prevent padding from being applied to form controls

Quick Wins Count:
- Use settings.quickWinThreshold instead of hardcoded 15
- Match same filtering logic as QuickWinList component

Back Button Navigation:
- Use window.history.back() instead of setLocation('/')
- Works correctly when navigating from ADHD dashboard to sub-pages

Time Tracking (Break Reminder):
- Track only active browser time using Page Visibility API
- Reset accumulated time after 8 hours of inactivity
- Store/restore active time in localStorage properly
- No more 1500+ hour counts from leaving browser open

Sources:
- https://ui.shadcn.com/docs/theming (shadcn theming)
- https://ui.shadcn.com/docs/tailwind-v4 (Tailwind v4 updates)
This commit is contained in:
Paul Nothaft
2026-01-16 23:01:26 +01:00
parent b4e7cce651
commit 2a98ebdf9f
6 changed files with 121 additions and 38 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export default function BodyDoublingPage() {
<Button
variant="ghost"
size="icon"
onClick={() => setLocation('/')}
onClick={() => window.history.back()}
className="shrink-0"
>
<ArrowLeft className="h-5 w-5" />