From 217ed7889e7aa6bfa94bd4e081772e19d5272765 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Thu, 14 May 2026 19:26:09 +0700 Subject: [PATCH] feat: reorder You tab to show history first, extend Up Next list, remove PIP button --- frontend/app/feed/library/page.tsx | 60 +++++++++---------- frontend/app/watch/ClientWatchPage.tsx | 4 +- frontend/app/watch/YouTubePlayer.tsx | 82 ++++++++++++++------------ 3 files changed, 76 insertions(+), 70 deletions(-) diff --git a/frontend/app/feed/library/page.tsx b/frontend/app/feed/library/page.tsx index ed66533..e10133b 100644 --- a/frontend/app/feed/library/page.tsx +++ b/frontend/app/feed/library/page.tsx @@ -254,36 +254,6 @@ export default function LibraryPage() { return (
- {subscriptions.length > 0 && ( -
-

- Sub -

-
- {subscriptions.map((sub) => ( - - ))} -
-
- )} - - {savedVideos.length > 0 && ( -
-

- Saved Videos -

-
- {savedVideos.map((video) => ( - - ))} -
-
- )} -

Watch History @@ -311,6 +281,36 @@ export default function LibraryPage() {

)} + + {savedVideos.length > 0 && ( +
+

+ Saved Videos +

+
+ {savedVideos.map((video) => ( + + ))} +
+
+ )} + + {subscriptions.length > 0 && ( +
+

+ Sub +

+
+ {subscriptions.map((sub) => ( + + ))} +
+
+ )} ); } diff --git a/frontend/app/watch/ClientWatchPage.tsx b/frontend/app/watch/ClientWatchPage.tsx index 7bd5a2f..ea61f45 100644 --- a/frontend/app/watch/ClientWatchPage.tsx +++ b/frontend/app/watch/ClientWatchPage.tsx @@ -970,8 +970,8 @@ export default function ClientWatchPage() { {relatedVideos.length} videos -
- {relatedVideos.slice(0, 8).map((video, index) => ( +
+ {relatedVideos.slice(0, 30).map((video, index) => (
handleVideoSelect(index)} diff --git a/frontend/app/watch/YouTubePlayer.tsx b/frontend/app/watch/YouTubePlayer.tsx index 2983737..178545e 100644 --- a/frontend/app/watch/YouTubePlayer.tsx +++ b/frontend/app/watch/YouTubePlayer.tsx @@ -252,44 +252,50 @@ export default function YouTubePlayer({ left: 0, }} /> - {/* Fullscreen button */} - + {/* Controls */} +
+ {/* Fullscreen button */} + +
); }