Repository navigation
Conversation
|
Thanks for the PR! 🙏 @lokesh is assigned to this PR and currently has:
PR triage checklist (maintainers / Pierre)
Note This comment was automatically generated by Pierre, Open Library's PR first-touch assistant, on behalf of @mekarpeles. This is NOT a code review or sign-off. |
There was a problem hiding this comment.
✅ Every finding in this review was fixed or dismissed.
1 finding on 40d8a86
Prompt for AI agents (1 open item)
Check if each issue is valid — if so, understand the root cause and fix it. If one isn't valid or won't be fixed in this PR, say why in its thread, or in a comment on the PR if it has none.
<file name="static/css/components/search-result-item.css">
<item location="365">text-align: left breaks RTL mirroring: `docs/frontend/design.md`'s Right-to-left section names `text-align: left` as exactly the non-mirroring bug the RTL playground check exists to catch. Use the logical `text-align: start` instead, which renders identically in LTR but correctly flips for Arabic/Hebrew/Persian readers.</item>
</file>
🎫 Linked issues ✅: #14372 ✅
#14372 - PR Code Verified
Compliant requirements:
- Align the missing-cover placeholder with real book covers in search results
Requires further human verification:
- Visual confirmation in a browser that the placeholder renders flush with real covers in both list and grid layouts, and at RTL locales
Please address the feedback above before a maintainer reviews this PR · How this bot works · Reviews new pushes after 10 minutes
openlibrary-bot
left a comment
There was a problem hiding this comment.
No blocking findings · 1 suggestion on 4aff755
✅ Earlier findings: 1 addressed.
Re-reviewed only the files changed since my last review, skipping merges of the base branch.
Prompt for AI agents (1 open item)
Check if each issue is valid — if so, understand the root cause and fix it. If one isn't valid or won't be fixed in this PR, say why in its thread, or in a comment on the PR if it has none.
<file name="static/css/components/search-result-item.css">
<item location="379">Selector wrapped across lines unlike the rest of the file: This is the only multi-line selector in the file; every other rule, including longer ones, is written on one line and the selector here is well under the 162-char limit. Collapsing it to one line matches the file's existing convention.</item>
</file>
🎫 Linked issues ✅: #14372 ✅
#14372 - PR Code Verified
Compliant requirements:
- Placeholder aligned to the reading-start edge via text-align: start
- Placeholder expanded to fill the 105px cover column while preserving aspect ratio
Requires further human verification:
- Visual confirmation in a browser across grid/list views, viewports, and RTL layout per the PR's reviewer verification steps
Please address the feedback above before a maintainer reviews this PR · How this bot works · Reviews new pushes after 10 minutes
| .search-results-container | ||
| .searchResultItem | ||
| .bookcover | ||
| :where(img[src$="avatar_book-sm.png"]) { |
There was a problem hiding this comment.
Suggestion (won't block) · Styleguide — Selector wrapped across lines unlike the rest of the file
This is the only multi-line selector in the file; every other rule, including longer ones, is written on one line and the selector here is well under the 162-char limit. Collapsing it to one line matches the file's existing convention.
Apply it or ignore it.
| .search-results-container | |
| .searchResultItem | |
| .bookcover | |
| :where(img[src$="avatar_book-sm.png"]) { | |
| .search-results-container .searchResultItem .bookcover :where(img[src$="avatar_book-sm.png"]) { |
The placeholder now fills the 105px cover slot, so it no longer needs the column's text alignment changed. Overriding it moved real covers narrower than 105px away from the title and details.
openlibrary-bot
left a comment
There was a problem hiding this comment.
This review is of daddbb6. 7bf5909 was pushed while it ran, so this review neither approves nor blocks. 7bf5909 needs its own review: its code-review check says whether one will start or has to be requested.
No blocking findings · 1 suggestion on daddbb6
Suggestions (won't block)
- Description describes a text-align: start change that isn't in the diff
The PR body says covers are aligned withtext-align: startand that the latest commit replacedtext-align: leftwithtext-align: startfor RTL support, but the whole-PR diff only adds awidth: 105pxrule — notext-alignproperty is touched anywhere in this file. Update the description to match what actually shipped, or confirm the text-align change landed somewhere else.
Prompt for AI agents (1 open item)
Check if each issue is valid — if so, understand the root cause and fix it. If one isn't valid or won't be fixed in this PR, say why in its thread, or in a comment on the PR if it has none.
<item>Description describes a text-align: start change that isn't in the diff: The PR body says covers are aligned with `text-align: start` and that the latest commit replaced `text-align: left` with `text-align: start` for RTL support, but the whole-PR diff only adds a `width: 105px` rule — no `text-align` property is touched anywhere in this file. Update the description to match what actually shipped, or confirm the text-align change landed somewhere else.</item>
Please address the feedback above before a maintainer reviews this PR · How this bot works · Reviews new pushes after 10 minutes
openlibrary-bot
left a comment
There was a problem hiding this comment.
No blocking findings · 1 suggestion on 7bf5909
Suggestions (won't block)
- PR description describes a text-align change absent from the diff
The description says the latest commit replacedtext-align: leftwithtext-align: startin response to review feedback, but the PR's only file (search-result-item.css) contains no text-align change at all, and no other file is touched. Update the description, or confirm whether the RTL alignment fix still needs to be made.
Prompt for AI agents (1 open item)
Check if each issue is valid — if so, understand the root cause and fix it. If one isn't valid or won't be fixed in this PR, say why in its thread, or in a comment on the PR if it has none.
<item>PR description describes a text-align change absent from the diff: The description says the latest commit replaced `text-align: left` with `text-align: start` in response to review feedback, but the PR's only file (`search-result-item.css`) contains no text-align change at all, and no other file is touched. Update the description, or confirm whether the RTL alignment fix still needs to be made.</item>
Please address the feedback above before a maintainer reviews this PR · How this bot works · Reviews new pushes after 10 minutes
Code review of
|
Closes #14372
Expands the missing-cover placeholder to fill the search results’ cover column, implementing option 1 approved in the issue discussion.
Technical
avatar_book-sm.pngfrom its intrinsic 84×115px size to 105px wide and approximately 144px tall.text-align: startto align covers to the reading-start edge, supporting both LTR and RTL layouts.width: auto.:where()so the existing grid-view rule can override it..search-results-containerwithin the existing desktop/tablet media query.Testing
Previously completed checks:
make css && make js.Reviewer verification:
/search?q=kubernetes+cookbookat a viewport width of at least 768px.The latest commit replaces
text-align: leftwithtext-align: startin response to automated review feedback.Screenshot
Before/after mockups are available in the issue discussion:
#14372 (comment)
These mockups illustrate the approved design; they are not screenshots of the final implementation.
Stakeholders
@lokesh @mekarpeles