Skip to content

fix: stabilize book card grid alignment#518

Merged
everpcpc merged 5 commits intomainfrom
codex/fix-book-card-alignment-issue
Feb 19, 2026
Merged

fix: stabilize book card grid alignment#518
everpcpc merged 5 commits intomainfrom
codex/fix-book-card-alignment-issue

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • Keep book cards aligned in grid mode by reserving a fixed progress-bar slot when the reading progress bar feature is enabled.
  • Render the bar only for in-progress books, but keep equal vertical space for non-progress books to avoid row misalignment.
  • Tighten vertical spacing from 4 to 2 when progress bars are enabled, and remove the unnecessary accessibilityHidden modifier.

Testing

  • make build-macos

Reserve a fixed progress-bar slot in book cards so cards keep the same height when some books have in-progress state and others do not.
Adjust content spacing to 2 when progress bars are enabled to keep tighter vertical rhythm.
Remove accessibilityHidden from the placeholder bar per review feedback.
Pass through real progress to ReadingProgressBar and control visibility only with opacity for the reserved progress slot behavior.
Include the existing Swift format-only changes in ThumbnailCache.swift.
Remove intermediate visibility properties and keep the reserved progress slot logic directly in the view body.
This keeps behavior unchanged while making intent easier to read.
Group progress bar and metadata text under a shared non-overlay branch.
Keep cover-only behavior unchanged while making progress-bar condition simpler.
@everpcpc everpcpc merged commit de653cf into main Feb 19, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-book-card-alignment-issue branch February 19, 2026 13:50
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.

1 participant