diff --git a/src/renderer/features/player/components/full-screen-player-image.module.css b/src/renderer/features/player/components/full-screen-player-image.module.css index 96e588e1..d134651b 100644 --- a/src/renderer/features/player/components/full-screen-player-image.module.css +++ b/src/renderer/features/player/components/full-screen-player-image.module.css @@ -2,7 +2,6 @@ position: absolute; max-width: 100%; height: 100%; - object-fit: var(--theme-image-fit); object-position: 50% 100%; border-radius: 5px; filter: drop-shadow(0 0 5px rgb(0 0 0 / 40%)) drop-shadow(0 0 5px rgb(0 0 0 / 40%)); @@ -24,8 +23,13 @@ justify-content: center; padding: 1rem; text-align: center; + cursor: default; border-radius: 5px; + a { + cursor: pointer; + } + h1 { font-size: 3.5vh; } diff --git a/src/renderer/features/player/components/full-screen-player-image.tsx b/src/renderer/features/player/components/full-screen-player-image.tsx index 98d937cd..165341e2 100644 --- a/src/renderer/features/player/components/full-screen-player-image.tsx +++ b/src/renderer/features/player/components/full-screen-player-image.tsx @@ -16,9 +16,7 @@ import { Center } from '/@/shared/components/center/center'; import { Flex } from '/@/shared/components/flex/flex'; import { Group } from '/@/shared/components/group/group'; import { Icon } from '/@/shared/components/icon/icon'; -import { Image } from '/@/shared/components/image/image'; import { Stack } from '/@/shared/components/stack/stack'; -import { TextTitle } from '/@/shared/components/text-title/text-title'; import { Text } from '/@/shared/components/text/text'; import { PlayerData, QueueSong } from '/@/shared/types/domain-types'; @@ -52,9 +50,14 @@ const scaleImageUrl = (imageSize: number, url?: null | string) => { .replace(/&height=\d+/, `&height=${imageSize}`); }; -const MotionImage = motion.create(Image); +const MotionImage = motion.img; + +const ImageWithPlaceholder = ({ + className, + ...props +}: HTMLMotionProps<'img'> & { placeholder?: string }) => { + const nativeAspectRatio = useSettingsStore((store) => store.general.nativeAspectRatio); -const ImageWithPlaceholder = ({ ...props }: HTMLMotionProps<'img'> & { placeholder?: string }) => { if (!props.src) { return (