Skip to content

Commit

Permalink
fix opengraph image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GokuxSS4 committed Jan 26, 2025
1 parent 07d2300 commit 0dcabfc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 4 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export const metadata: Metadata = {
icons: {
icon: "/icons/aniweeb-icon.ico",
},
metadataBase: new URL("https://aniweeb.com"),
openGraph: {
images: "/opengraph-image.png",
},
};

export default function RootLayout({
Expand Down
9 changes: 7 additions & 2 deletions components/watch/VideoContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { HiAnime } from "aniwatch";
import { useEffect, useState } from "react";
import { BsBadgeCc } from "react-icons/bs";
import { MdMicNone } from "react-icons/md";
import { BsFileEarmark } from "react-icons/bs";
import {
VidstackDefaultPlayer,
VidStackPlayerSkeleton,
Expand Down Expand Up @@ -257,7 +258,7 @@ export function VideoContainer({
renderServerButtons(
availableServers.sub,
"sub",
<BsBadgeCc className="size-4" />,
<BsBadgeCc className="size-5" />,
)}

{availableServers.dub?.length > 0 &&
Expand All @@ -268,7 +269,11 @@ export function VideoContainer({
)}

{availableServers.raw?.length > 0 &&
renderServerButtons(availableServers.raw, "raw")}
renderServerButtons(
availableServers.raw,
"raw",
<BsFileEarmark className="size-5" />,
)}
</>
)}
</div>
Expand Down
14 changes: 2 additions & 12 deletions components/watch/VidstackDefaultPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,12 @@ export function VidstackDefaultPlayer({
noGestures={false}
slots={{
afterCaptionButton: (
<SeekButton seconds={-10} className="block md:hidden vds-button">
<SeekButton seconds={-10} className="vds-button">
<SeekBackward10Icon size={32} className="vds-icon" />
</SeekButton>
),
beforeSettingsMenu: (
<SeekButton seconds={10} className="block md:hidden vds-button">
<SeekForward10Icon size={32} className="vds-icon" />
</SeekButton>
),
afterPlayButton: (
<SeekButton seconds={-10} className="hidden md:block vds-button">
<SeekBackward10Icon size={32} className="vds-icon" />
</SeekButton>
),
beforeMuteButton: (
<SeekButton seconds={10} className="hidden md:block vds-button">
<SeekButton seconds={10} className="vds-button">
<SeekForward10Icon size={32} className="vds-icon" />
</SeekButton>
),
Expand Down
File renamed without changes

0 comments on commit 0dcabfc

Please sign in to comment.