use correct class for quicknav

This commit is contained in:
2026-05-24 21:16:25 +02:00
parent 78c28b4734
commit 0714b0a68c
3 changed files with 11 additions and 5 deletions

View File

@@ -8409,6 +8409,12 @@ body.layout-legacy .comment-content img.emoji {
background: rgba(17, 17, 17, 0.55) !important;
}
.anchor-target {
border-left: 3px solid var(--accent) !important;
background: rgba(17, 17, 17, 0.55) !important;
padding-left: 5px;
}
@keyframes activityGlow {
0% {
color: var(--accent);

View File

@@ -3254,8 +3254,8 @@ window.cancelAnimFrame = (function () {
if (targetEl) {
targetEl.scrollIntoView({ behavior: 'smooth', block: 'center' });
// Clear any previous highlight, then permanently mark this element
document.querySelectorAll('.comment-highlighted').forEach(el => el.classList.remove('comment-highlighted'));
targetEl.classList.add('comment-highlighted');
document.querySelectorAll('.anchor-target').forEach(el => el.classList.remove('anchor-target'));
targetEl.classList.add('anchor-target');
}
}