library: fix object icon visibility and refine interactive cover hots…#149
Conversation
…pots Object icons (book/video/audio) rendered white-on-white in the library card list and the sidebar "Total objects" zone. Switch the sprite symbols to currentColor and pin a dark tone on the Object icon wrapper so they stay visible on light surfaces while the cover card keeps its white icons. Also inline the icon sprite for cross-browser <use> support, and tune hotspot geometry, card edge anchoring, and pagination gating on the cover. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@claude, review this PR. |
|
Claude finished @MaryWylde's task in 2m 32s —— View job PR Review — library: fix object icon visibility and refine interactive cover hotspotsTodo
OverviewThe approach is solid: Issues — Should Fix1. Debug artifact paths in Both symbols contain giant, out-of-bounds rectangles colored <path d="M295.92 -167.388V135.732H-25.1996V-167.388H295.92Z..." fill="#0000FF"></path>
<path d="M159.12 -84.4991V134.421H-72.7998V-84.4991H159.12Z..." fill="#0000FF"></path>These paths use coordinates far outside their 2. JSDoc mismatch on
/** Wider artwork served to 1920px+ viewports via <picture> art direction. */But the actual 3. Duplicate .border {
.icon {
border-right: 0; // ← dead code, immediately overridden
border-right: 1px solid var(--brown-border);
}
}The first declaration is never observed. Fix this → Issues — Nice to Fix4. Dead CSS rule in @media (max-width: 768px) {
.card { width: 60%; min-width: 0; }
}The 5. fill={color !== 'currentColor' ? undefined : color}When 6. const menuPos = useAnchoredPosition(triggerRef, isOpen, menuRef, {
openUpMaxWidth: 1920,
});This means the dropdown opens upward on every screen ≤1920px (i.e., practically always). The comment explains it avoids the first-paint jump, which is valid, but if a Looks Good
Not Production-Ready (Follow-up)
|
The hotspot layer (and its .card) only mounts at min-width:768px, so the max-width:768px rule could never match a live element. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…pots
Object icons (book/video/audio) rendered white-on-white in the library card list and the sidebar "Total objects" zone. Switch the sprite symbols to currentColor and pin a dark tone on the Object icon wrapper so they stay visible on light surfaces while the cover card keeps its white icons.
Also inline the icon sprite for cross-browser support, and tune hotspot geometry, card edge anchoring, and pagination gating on the cover.