兼容低内核版本的浏览器
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
} from "lucide-react";
|
||||
import { Link, useLocation } from "wouter";
|
||||
import { useMemo } from "react";
|
||||
import { appShellColumnClass, appShellGutterClass } from "@/lib/appShell";
|
||||
import { bottomNavInnerClass, bottomNavOuterClass } from "@/lib/appShell";
|
||||
|
||||
type BottomNavLocale = NonNullable<(typeof localeZh)["bottomNav"]>;
|
||||
|
||||
@@ -56,11 +56,9 @@ export default function BottomNav() {
|
||||
}, [deviceState?.language]);
|
||||
|
||||
return (
|
||||
<nav
|
||||
className={`fixed inset-x-0 bottom-0 z-50 flex justify-center pointer-events-none ${appShellGutterClass}`}
|
||||
>
|
||||
<nav className={bottomNavOuterClass}>
|
||||
<div
|
||||
className={`pointer-events-auto ${appShellColumnClass}`}
|
||||
className={bottomNavInnerClass}
|
||||
style={{
|
||||
background: "rgba(10, 10, 12, 0.96)",
|
||||
backdropFilter: "blur(40px) saturate(200%)",
|
||||
|
||||
@@ -65,6 +65,8 @@ function SplitDivider({
|
||||
);
|
||||
}
|
||||
|
||||
const isLegacyBuild = import.meta.env.VITE_X9_LEGACY === "1";
|
||||
|
||||
/**
|
||||
* lg+: optional side-by-side AI panel with draggable divider. Mobile unchanged (router only).
|
||||
*/
|
||||
@@ -87,7 +89,9 @@ export default function DesktopAIShell({ children }: { children: ReactNode }) {
|
||||
"w-full min-w-0",
|
||||
showSplit
|
||||
? "flex h-dvh max-h-dvh flex-row overflow-hidden"
|
||||
: "min-h-dvh",
|
||||
: isLegacyBuild
|
||||
? "min-h-0"
|
||||
: "min-h-dvh",
|
||||
)}
|
||||
>
|
||||
<div
|
||||
@@ -97,7 +101,9 @@ export default function DesktopAIShell({ children }: { children: ReactNode }) {
|
||||
? "h-full min-h-0 overflow-y-auto overflow-x-hidden"
|
||||
: isLgUp
|
||||
? "min-h-dvh overflow-x-hidden"
|
||||
: "min-h-dvh max-h-dvh overflow-x-hidden overflow-y-auto overscroll-y-contain [touch-action:pan-y]",
|
||||
: isLegacyBuild
|
||||
? "w-full overflow-x-hidden"
|
||||
: "min-h-dvh max-h-dvh overflow-x-hidden overflow-y-auto overscroll-y-contain [touch-action:pan-y]",
|
||||
)}
|
||||
style={
|
||||
showSplit
|
||||
|
||||
Reference in New Issue
Block a user