This commit is contained in:
2026-06-16 12:34:08 +02:00
parent e9c865a254
commit 967803c326
3 changed files with 10 additions and 3 deletions
+7 -1
View File
@@ -290,9 +290,15 @@ function toggleViewMode() {
}
}
function toggleLayout() {
async function toggleLayout() {
if (observer) {
observer.disconnect()
observer = null
}
layout.value = layout.value === 'list' ? 'cards' : 'list'
localStorage.setItem('layout', layout.value)
await nextTick()
setupIntersectionObserver()
}
function nextArticle() {