From 7eec68a830565693b9ebe0e2d78dff6ddfe2653b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Mon, 22 Sep 2025 11:08:13 +0800 Subject: [PATCH] fix: image position by remove useless aspect ratio component --- .../layer/renderer/src/components/ui/media/Media.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx index 272a146b2..c6cfbcbf7 100644 --- a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx +++ b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx @@ -388,12 +388,7 @@ const MediaImpl: FC = ({ style={style} > {!!props.width && !!props.height && !!containerWidth ? ( - + <>
= ({
{InnerContent}
- + ) : ( InnerContent )} @@ -445,7 +440,7 @@ const FallbackMedia: FC = ({ type, mediaContainerClassName, classNam
) -const AspectRatio = ({ +const _AspectRatio = ({ width, height, containerWidth,