Skip to content

A self-hosted media server and file management system

scroll fix

aminnausinb4e20a83eb21
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index 83598ce7..bb0b8ef8 100644
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -22,6 +22,8 @@ async function cycleSideBar(state) {
if (state === "history") {
await getRecords(10);
}
+ if(!state) return;
+
await nextTick();
document.querySelector('#list-card').scrollIntoView({behavior: "smooth"});
}