From bb51c30f2f10a8b85259878d1a3e51ac51546c59 Mon Sep 17 00:00:00 2001 From: grepfs17 Date: Mon, 30 Mar 2026 00:54:33 +0200 Subject: [PATCH] fix editor ligatures characters --- src/components/ChatApp.tsx | 2 -- src/pages/api/youtube-chat.ts | 6 +++--- src/pages/api/youtube-live.ts | 4 +--- src/styles/YouTubeLinker.css | 2 -- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/ChatApp.tsx b/src/components/ChatApp.tsx index 53add6c..e3d7eae 100644 --- a/src/components/ChatApp.tsx +++ b/src/components/ChatApp.tsx @@ -751,7 +751,6 @@ export default function ChatApp({ <> {/* NORMAL SPLIT MODE */} - {/* YouTube live chat – top 50% when a linked channel has a video ID */} {linkedYoutubeUrl && showYoutubeSection && (
{youtubeVideoId ? ( @@ -981,7 +980,6 @@ export default function ChatApp({
)} - {/* Twitch chat – bottom 50% (or full height if no YouTube link) */}
{ const headers = { "Content-Type": "application/json" }; diff --git a/src/pages/api/youtube-live.ts b/src/pages/api/youtube-live.ts index 0db9e5b..0006dc5 100644 --- a/src/pages/api/youtube-live.ts +++ b/src/pages/api/youtube-live.ts @@ -213,8 +213,7 @@ async function resolveChannelId( }); return id; } - - // /c/CustomName or /user/Username – try forUsername first, then search + if (pathname.startsWith("/c/") || pathname.startsWith("/user/")) { const name = pathname.split("/")[2]; const id = await resolveByUsernameOrSearch(name, apiKey); @@ -256,7 +255,6 @@ async function resolveHandleViaApi( handle: string, apiKey: string, ): Promise { - // YouTube Data API v3 – channels.list with forHandle const res = await fetch( `https://www.googleapis.com/youtube/v3/channels?part=id&forHandle=${encodeURIComponent(handle)}&key=${apiKey}`, ); diff --git a/src/styles/YouTubeLinker.css b/src/styles/YouTubeLinker.css index 35fc08c..44ad480 100644 --- a/src/styles/YouTubeLinker.css +++ b/src/styles/YouTubeLinker.css @@ -1,5 +1,3 @@ -/* YouTubeLinker modal – mirrors WatchlistManager styles */ - .ytlinker-overlay { position: fixed; inset: 0;