fix: add OK button back to audiobook sleep timer custom input
Mobile needs the button since there's no keyboard Enter key in all cases. Button is compact and styled to match the accent color. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
cf88d87791
commit
f5343efd37
2 files changed
+2
No files matched your search
@@ -722,6 +722,7 @@
|
|||||||
<div class="abs-sleep-custom-row">
|
<div class="abs-sleep-custom-row">
|
||||||
<span class="abs-sleep-custom-label">Eigene Zeit</span>
|
<span class="abs-sleep-custom-label">Eigene Zeit</span>
|
||||||
<input id="abs-sleep-custom-input" type="number" min="1" max="999" placeholder="Min" onkeydown="if(event.key==='Enter'){var v=parseInt(this.value);if(v>0)absSleepIn(v);}">
|
<input id="abs-sleep-custom-input" type="number" min="1" max="999" placeholder="Min" onkeydown="if(event.key==='Enter'){var v=parseInt(this.value);if(v>0)absSleepIn(v);}">
|
||||||
|
<button class="abs-sleep-custom-ok" onclick="var v=parseInt(document.getElementById('abs-sleep-custom-input').value);if(v>0)absSleepIn(v);">OK</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -956,6 +956,7 @@ nav{flex:1;overflow-y:auto;padding:4px 10px}
|
|||||||
.abs-sleep-custom-row input:focus{border-color:var(--accent)}
|
.abs-sleep-custom-row input:focus{border-color:var(--accent)}
|
||||||
.abs-sleep-custom-row input[type=number]::-webkit-inner-spin-button,.abs-sleep-custom-row input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
|
.abs-sleep-custom-row input[type=number]::-webkit-inner-spin-button,.abs-sleep-custom-row input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
|
||||||
.abs-sleep-custom-row input[type=number]{-moz-appearance:textfield}
|
.abs-sleep-custom-row input[type=number]{-moz-appearance:textfield}
|
||||||
|
.abs-sleep-custom-ok{flex-shrink:0;padding:4px 10px;background:var(--accent);border:none;border-radius:6px;color:#fff;font-family:var(--font);font-size:12px;font-weight:600;cursor:pointer}
|
||||||
.abs-chapter-list{flex-shrink:0;overflow-y:auto;max-height:0;transition:max-height .3s ease;border-top:1px solid transparent}
|
.abs-chapter-list{flex-shrink:0;overflow-y:auto;max-height:0;transition:max-height .3s ease;border-top:1px solid transparent}
|
||||||
.abs-chapter-list.open{max-height:220px;border-color:var(--border)}
|
.abs-chapter-list.open{max-height:220px;border-color:var(--border)}
|
||||||
.abs-ch-item{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .15s}
|
.abs-ch-item{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .15s}
|
||||||
|
|||||||
Reference in new issue
Block a user