mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
Move the measured-ratio map, debounced ratioVersion, onCardRatio handler, and ratioAt resolver out of GalleryShell into useGalleryCoverRatios. The composable owns its debounce-timer cleanup (onBeforeUnmount), so the shell no longer tracks ratioBumpTimer. Behaviour is unchanged; adds a unit test for the dedup / debounce / position→rom→ratio mapping. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>