diff --git a/apps/renderer/src/components/ui/media.tsx b/apps/renderer/src/components/ui/media.tsx index 756815bfd..2258025b9 100644 --- a/apps/renderer/src/components/ui/media.tsx +++ b/apps/renderer/src/components/ui/media.tsx @@ -1,5 +1,6 @@ import { nextFrame } from "@follow/utils/dom" import { cn } from "@follow/utils/utils" +import { omit } from "es-toolkit/compat" import { useForceUpdate } from "framer-motion" import type { FC, ImgHTMLAttributes, VideoHTMLAttributes } from "react" import { createContext, memo, useContext, useMemo, useState } from "react" @@ -175,7 +176,7 @@ const MediaImpl: FC = ({ )} + {...(omit(rest, "cacheDimensions") as ImgHTMLAttributes)} onError={errorHandle} className={cn( "size-full object-contain",