fix: youtube embed
This commit is contained in:
@@ -299,6 +299,7 @@ function VideoIcon({ src }: { src: string }) {
|
||||
<TooltipContent className="flex-col gap-1" side={"bottom"}>
|
||||
<div className="flex items-center gap-1">
|
||||
<ViewTag
|
||||
referrerPolicy="strict-origin-when-cross-origin"
|
||||
src={src}
|
||||
className={cn(
|
||||
"pointer-events-none aspect-video w-[575px] shrink-0 rounded-md bg-black object-cover",
|
||||
|
||||
@@ -87,6 +87,7 @@ export function VideoItem({ entryId, translation }: UniversalItemProps) {
|
||||
{miniIframeSrc && showPreview ? (
|
||||
<ViewTag
|
||||
src={miniIframeSrc}
|
||||
referrerPolicy="strict-origin-when-cross-origin"
|
||||
className={cn(
|
||||
"pointer-events-none aspect-video w-full shrink-0 rounded-md bg-black object-cover",
|
||||
isActive && "rounded-b-none",
|
||||
|
||||
+2
@@ -134,11 +134,13 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
||||
{preferFullSize && iframeSrc ? (
|
||||
<ViewTag
|
||||
src={iframeSrc}
|
||||
referrerPolicy="strict-origin-when-cross-origin"
|
||||
className="aspect-video w-full rounded-md bg-black object-cover"
|
||||
/>
|
||||
) : miniIframeSrc && showPreview ? (
|
||||
<ViewTag
|
||||
src={miniIframeSrc}
|
||||
referrerPolicy="strict-origin-when-cross-origin"
|
||||
className="pointer-events-none aspect-video w-full rounded-md bg-black object-cover"
|
||||
/>
|
||||
) : entry.firstMedia ? (
|
||||
|
||||
Reference in New Issue
Block a user