silent scroll :)

This commit is contained in:
2026-05-31 18:37:45 +02:00
parent 8a3a77d273
commit 08cdada5bc
3 changed files with 11 additions and 4 deletions

View File

@@ -9112,16 +9112,23 @@ html[theme="f0ck95d"] .badge-dark {
font-size: x-large;
}
.steuerung.steuerung-icon a {
.steuerung.steuerung-icon a,
.steuerung.steuerung-icon button {
color: white;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.6em;
transition: color 0.15s ease, transform 0.15s ease;
background: none;
border: none;
padding: 0;
cursor: pointer;
font-size: inherit;
}
.steuerung.steuerung-icon a:hover {
.steuerung.steuerung-icon a:hover,
.steuerung.steuerung-icon button:hover {
color: var(--accent);
}

View File

@@ -9177,7 +9177,7 @@ if (navigator.vibrate) {
// The alternative icon nav replaces the Zufall link with a down-chevron that
// scrolls the page to the bottom (comments / tag section).
document.addEventListener('click', (e) => {
const link = e.target.closest('a.steuerung-scroll-down');
const link = e.target.closest('.steuerung-scroll-down');
if (!link) return;
e.preventDefault();
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });