Skip to content

Make rest timer overlay header with prominent countdown display#26

Merged
willchan merged 2 commits intomainfrom
claude/improve-rest-timer-visibility-XJPt3
Mar 8, 2026
Merged

Make rest timer overlay header with prominent countdown display#26
willchan merged 2 commits intomainfrom
claude/improve-rest-timer-visibility-XJPt3

Conversation

@willchan
Copy link
Owner

@willchan willchan commented Mar 8, 2026

Summary

Redesigned the rest timer to be a fixed overlay that covers the header area with a large, prominent countdown display. This ensures the timer is always visible and cannot be occluded during rest periods.

Key Changes

  • Positioning: Changed from sticky positioning to fixed, anchored at the top of the viewport to overlay the header
  • Visual Prominence: Increased timer value font size from 1.8rem to 3rem for better visibility
  • Z-index: Raised from 9 to 15 to ensure it appears above the header
  • Layout: Made timer full-width (100%) with centered alignment using transform: translateX(-50%)
  • Styling:
    • Removed bottom margin and border-radius from sides (kept only bottom radius for softer appearance)
    • Enhanced label styling with increased font weight (600→700) and letter-spacing
    • Adjusted padding for better proportions with larger text
  • Testing: Added comprehensive e2e test suite covering visibility, z-index layering, full-width behavior, accessibility, and visual regression

Implementation Details

The timer now uses fixed positioning with a max-width constraint to maintain proper proportions on larger screens while remaining full-width on mobile. The skip button remains accessible and functional within the overlay. Visual snapshot testing ensures the design remains consistent across updates.

https://claude.ai/code/session_01PuaCbmpvpkgrFd2yX1pQKy

claude added 2 commits March 8, 2026 22:15
The rest timer was easily occluded by the sticky header and too small
to notice. Now it renders as a fixed overlay at the top of the viewport
with a larger countdown (3rem), higher z-index than the header, and
full-width positioning so it's the most prominent element during rest.

https://claude.ai/code/session_01PuaCbmpvpkgrFd2yX1pQKy
@willchan willchan force-pushed the claude/improve-rest-timer-visibility-XJPt3 branch from cd6bea3 to 2f61255 Compare March 8, 2026 22:15
@willchan willchan merged commit b694739 into main Mar 8, 2026
1 check passed
@willchan willchan deleted the claude/improve-rest-timer-visibility-XJPt3 branch March 19, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants