- {chatState.historyLoaded ? "Image not found." : "Loading image..."} -
-diff --git a/src/app/chat/components/fullscreen-image-viewer.module.css b/src/app/chat/components/fullscreen-image-viewer.module.css index 9bd2beaf..08aa5c9a 100644 --- a/src/app/chat/components/fullscreen-image-viewer.module.css +++ b/src/app/chat/components/fullscreen-image-viewer.module.css @@ -1,7 +1,7 @@ /* FullscreenImageViewer 全屏图片查看器样式 */ .viewer { - position: fixed; + position: absolute; inset: 0; z-index: 100; background: #000; diff --git a/src/app/chat/components/fullscreen-image-viewer.tsx b/src/app/chat/components/fullscreen-image-viewer.tsx index b459f1ea..3b4d8088 100644 --- a/src/app/chat/components/fullscreen-image-viewer.tsx +++ b/src/app/chat/components/fullscreen-image-viewer.tsx @@ -51,7 +51,7 @@ export function FullscreenImageViewer({ src={src} alt="" fill - sizes="100vw" + sizes="(max-width: 540px) 100vw, 540px" className={styles.paywallImage} />
diff --git a/src/app/chat/image/[messageId]/chat-image-viewer-screen.tsx b/src/app/chat/image/[messageId]/chat-image-viewer-screen.tsx index d4c0223b..847ffa57 100644 --- a/src/app/chat/image/[messageId]/chat-image-viewer-screen.tsx +++ b/src/app/chat/image/[messageId]/chat-image-viewer-screen.tsx @@ -2,6 +2,7 @@ import { useRouter } from "next/navigation"; +import { MobileShell } from "@/app/_components/core"; import { ROUTE_BUILDERS, ROUTES } from "@/router/routes"; import { useAuthState } from "@/stores/auth/auth-context"; import { useChatDispatch, useChatState } from "@/stores/chat/chat-context"; @@ -40,25 +41,33 @@ export function ChatImageViewerScreen({ if (!message) { return ( -- {chatState.historyLoaded ? "Image not found." : "Loading image..."} -
-+ {chatState.historyLoaded ? "Image not found." : "Loading image..."} +
+