fix editor ligatures characters
This commit is contained in:
@@ -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 && (
|
||||
<div style={{ flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column', overflow: 'hidden', borderBottom: '2px solid #333' }}>
|
||||
{youtubeVideoId ? (
|
||||
@@ -981,7 +980,6 @@ export default function ChatApp({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Twitch chat – bottom 50% (or full height if no YouTube link) */}
|
||||
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', minHeight: 0 }}>
|
||||
<ChatDisplay
|
||||
messages={messages}
|
||||
|
||||
@@ -6,9 +6,9 @@ import type { APIRoute } from "astro";
|
||||
* Sends a message to a YouTube live chat.
|
||||
*
|
||||
* Body (JSON):
|
||||
* videoId – YouTube video ID of the live stream
|
||||
* message – Text message to send
|
||||
* accessToken – YouTube OAuth2 access token (user must have granted live-chat scope)
|
||||
* videoId - YouTube video ID of the live stream
|
||||
* message - Text message to send
|
||||
* accessToken - YouTube OAuth2 access token (user must have granted live-chat scope)
|
||||
*/
|
||||
export const POST: APIRoute = async ({ request }) => {
|
||||
const headers = { "Content-Type": "application/json" };
|
||||
|
||||
@@ -214,7 +214,6 @@ 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<string | null> {
|
||||
// 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}`,
|
||||
);
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* YouTubeLinker modal – mirrors WatchlistManager styles */
|
||||
|
||||
.ytlinker-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
|
||||
Reference in New Issue
Block a user