feat: refine digital library visual design #46
Merged
+248
−123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes #41.
Refines the existing Digital Library interface into a more deliberate reading-focused design without changing the application logic, API usage, or stored preferences.
Scope
object-fit: containbehavior introduced in feat: consistent book covers #45, so covers are not cropped or stretched.Files changed
src/index.css— shared visual tokens and global page styling.src/App.css— page structure, header, responsive Library/Favorites switcher, controls, status messages, and footer.src/components/BookCard.css— book-card layout, metadata spacing, subject display, and narrow-screen presentation.src/components/FavoriteButton.cssandFavoritesView.css— clear favorite states and the reading-list overview.src/components/SubjectFilter.css,SortSelect.css,BookJumpList.css, andNavigationControls.css— matching controls, hover states, disabled states, and visible keyboard focus.User flows covered
Validation
prettier --checkon all changed CSS fileseslint srcvitest run— 70 tests passedvite buildManual review requested
Please check the visual hierarchy and spacing on both desktop and a narrow viewport, especially long titles, ratings, long subject lists, and the active favorite state.