Repository navigation
v1.3.13 - The library's Remove button was invisible on a phone
STREMIOSRV_LIBRARY_UI is off by default and this release touches nothing else.
Remove was revealed by :hover. A touch device has none, so on a phone or a tablet the control
never appeared — while still occupying its place in the corner of the card, which is the worst of
both: no way to remove a title deliberately, and a chance of removing one by accident.
It is now shown wherever the browser reports no hover, at a size meant for a fingertip rather than
a cursor. Being permanently visible is what makes the rest of this necessary: a delete button on a
small card under a thumb, firing on the first tap, would be more dangerous than the invisible one
it replaces. So on a touch device it asks twice — the first tap arms it, the second removes, and it
disarms itself after a few seconds or as soon as another one is armed. An armed button inverts its
colours and takes a ring, because a change of glyph alone is not much of a warning on a control
that deletes. Where a pointer can hover, nothing changes: one click, as before.
The confirm had to survive the page redrawing itself. The card list is rebuilt every few seconds
from the server's state, which replaces the very button holding the arming — so keyed on the
element it would lose its own race about as often as it won, and the second tap would land on a
button that had quietly forgotten. It is keyed on the title instead, and re-applied to whichever
button now stands for it.
The header shrank too. It is sticky, and at phone width it wrapped onto two rows and took an eighth
of the screen with it on every scroll. It now fits on one; the wordmark stays in the document for
screen readers rather than being deleted from it.
Upgrade: pull it. No configuration changes and no route changes on the default surface.