Always show queue add button, add mobile usability rule to CLAUDE.md
Hover-only controls are unreachable on touch devices. Removed opacity:0 hover-reveal pattern from queue add button. Added MOBILE USABILITY guideline to CLAUDE.md: all interactive elements must be always visible.
This commit is contained in:
parent
d1fbcf53cf
commit
7becbb94a1
2 changed files with 2 additions and 5 deletions
|
|
@ -181,6 +181,8 @@ Always use `uuid_str` when you need a string copy of the identifier. Models inhe
|
|||
|
||||
**CSS MEDIA SIZING**: Never combine `width: 100%` with `max-height` on media elements (img, video). `width: 100%` forces the element to span the full container even when `max-height` constrains the rendered content, creating dead whitespace. Use `width: auto` + `max-width: 100%` + `max-height` instead — the element shrinks to match the actual content aspect ratio within both constraints.
|
||||
|
||||
**MOBILE USABILITY**: Never use hover-only interactions (`:hover` to reveal controls, `opacity: 0` with hover reveal, etc.). Mobile/touch devices have no hover state — controls hidden behind hover are invisible and unreachable. All interactive elements (buttons, toggles, links) must be always visible and tappable. Design touch-first, then optionally enhance for desktop hover.
|
||||
|
||||
**TESTING INTEGRITY**: NEVER skip, delete, or disable unit tests or integration tests when they break. When tests fail:
|
||||
1. **FIX THE TESTS** - Update them to work with new functionality
|
||||
2. **FIX THE CODE** - If the tests reveal actual bugs, fix the underlying issue
|
||||
|
|
|
|||
|
|
@ -2895,11 +2895,6 @@ textarea {
|
|||
display: grid;
|
||||
place-items: center;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.related-content-row:hover .queue-add-btn {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.queue-add-btn:hover {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue