diff --git a/materialious/src/routes/(app)/watch/[slug]/+page.svelte b/materialious/src/routes/(app)/watch/[slug]/+page.svelte index cfcb6941..15de46ca 100644 --- a/materialious/src/routes/(app)/watch/[slug]/+page.svelte +++ b/materialious/src/routes/(app)/watch/[slug]/+page.svelte @@ -74,6 +74,15 @@ let playerCurrentTime: number = $state(0); + $effect(() => { + if ($interfaceAutoExpandComments && comments) { + const commentSectionElement = document.getElementById('comment-section'); + if (commentSectionElement) { + commentSectionElement.click(); + } + } + }); + playlistSettingsStore.subscribe((playlistSetting) => { if (!data.playlistId) return; if (data.playlistId in playlistSetting) { @@ -214,6 +223,13 @@ }); onMount(async () => { + if ($interfaceAutoExpandDesc) { + const descriptionElement = document.getElementById('description'); + if (descriptionElement) { + descriptionElement.click(); + } + } + if ($syncPartyConnectionsStore) { $syncPartyConnectionsStore.forEach((conn) => { playerSyncEvents(conn); @@ -562,8 +578,8 @@
-
- +
+