From f0862070822ad7c1e4645aeb60e97a3197d7b6b0 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 9 Apr 2024 15:32:00 +1200 Subject: [PATCH 1/9] Improved mobile action buttons --- .../src/routes/watch/[slug]/+page.svelte | 173 ++++++++++-------- 1 file changed, 101 insertions(+), 72 deletions(-) diff --git a/materialious/src/routes/watch/[slug]/+page.svelte b/materialious/src/routes/watch/[slug]/+page.svelte index 690ebe16..464093df 100644 --- a/materialious/src/routes/watch/[slug]/+page.svelte +++ b/materialious/src/routes/watch/[slug]/+page.svelte @@ -275,79 +275,90 @@ {/if} - - - {#if data.downloadOptions.length > 0} - - {/if} - {#if data.personalPlaylists} + +
+ - {:else} - - {/if} + + {#if data.downloadOptions.length > 0} + + {/if} + {#if data.personalPlaylists} + + {:else} + + {/if} +
@@ -469,7 +480,25 @@ @media screen and (max-width: 1000px) { .video-actions { - justify-content: flex-start; + align-items: flex-start; + flex-direction: column; + } + } + + @media screen and (max-width: 1000px) { + .video-actions > div { + margin-top: 1em; + } + } + + @media screen and (max-width: 1000px) { + menu { + position: fixed; + top: 50%; + left: 50%; + width: 100%; + transform: translate(-50%, 50%); + background-color: var(--surface-variant); } } From abb2377d0ec2331d98761094947b61dc17fdf6a4 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 9 Apr 2024 15:39:44 +1200 Subject: [PATCH 2/9] Added theatre mode --- materialious/src/routes/+layout.svelte | 17 ++++ .../src/routes/watch/[slug]/+page.svelte | 83 +++++++++++-------- materialious/src/store.ts | 1 + 3 files changed, 66 insertions(+), 35 deletions(-) diff --git a/materialious/src/routes/+layout.svelte b/materialious/src/routes/+layout.svelte index d79497b8..f6b1d6f7 100644 --- a/materialious/src/routes/+layout.svelte +++ b/materialious/src/routes/+layout.svelte @@ -28,6 +28,7 @@ playerListenByDefault, playerProxyVideos, playerSavePlaybackPosition, + playerTheatreModeByDefault, returnYTDislikesInstance, returnYtDislikes, sponsorBlock, @@ -482,6 +483,22 @@ +
+ +
+