fix(chat): place browser hint between header actions

This commit is contained in:
2026-07-15 15:39:27 +08:00
parent 2265a98e76
commit e1a43a641b
4 changed files with 45 additions and 25 deletions
+1 -4
View File
@@ -11,7 +11,6 @@ import { ROUTES } from "@/router/routes";
import { MobileShell } from "@/app/_components/core";
import {
BrowserHintOverlay,
ChatArea,
ChatHeader,
ChatInputBar,
@@ -216,6 +215,7 @@ export function ChatScreen() {
{/* isGuest 派生自 auth.loginStatus */}
<ChatHeader
isGuest={isGuest}
showBrowserHint={shouldShowBrowserHint}
offerBanner={
<FirstRechargeOfferBanner
visible={firstRechargeOfferBanner.visible}
@@ -252,9 +252,6 @@ export function ChatScreen() {
)}
</div>
{/* 浏览器提示(应用内浏览器检测) */}
{shouldShowBrowserHint ? <BrowserHintOverlay forceShow /> : null}
{/* PWA 安装提示触发器(聊天消息数量达到阈值后才允许弹出) */}
<PwaInstallOverlay enabled={shouldShowPwaInstall} />