feat: redesign sleep timer custom input as clickable row with inline edit

This commit is contained in:
Honey committed 2026-05-09 17:10:35 +02:00
1 parent b4c12a2940
commit e2c28926b2
3 files changed
+14 -6

No files matched your search

+1
View File
@@ -317,6 +317,7 @@ export function absSleepIn(minutes) {
clearTimeout(_sleepTimer); clearInterval(_sleepTick);
_sleepTimer = null; _sleepTick = null; _sleepEndTime = null;
document.getElementById('abs-sleep-picker')?.classList.remove('open');
document.getElementById('abs-sleep-custom-row')?.classList.remove('active');
if (!minutes) { S.absPlayer.sleepRemaining = null; _renderSleepBtn(); return; }
_sleepEndTime = Date.now() + minutes * 60_000;
_updateSleepTick();