forked from 77media/video-flow
修复层级问题
This commit is contained in:
parent
dffe7460da
commit
38953febb9
@ -280,16 +280,14 @@ export default function H5TopBar({ onSelectHomeTab }: H5TopBarProps) {
|
|||||||
height={undefined}
|
height={undefined}
|
||||||
bodyStyle={{ padding: 0 }}
|
bodyStyle={{ padding: 0 }}
|
||||||
maskClosable
|
maskClosable
|
||||||
zIndex={59}
|
|
||||||
// 64px 顶栏高度 + 8px 安全间距
|
// 64px 顶栏高度 + 8px 安全间距
|
||||||
maskStyle={{ position: 'absolute', top: '4rem', height: 'calc(100dvh - 4rem)', backgroundColor: 'transparent' }}
|
maskStyle={{ position: 'absolute', top: '3.5rem', height: 'calc(100dvh - 3.5rem)', backgroundColor: 'transparent' }}
|
||||||
styles={{
|
styles={{
|
||||||
content: { position: 'absolute', top: '4rem', height: isHome ? 'auto' : 'calc(100dvh - 4rem)' },
|
content: { position: 'absolute', top: '3.5rem', height: isHome ? 'auto' : 'calc(100dvh - 3.5rem)' },
|
||||||
body: { padding: 0 },
|
body: { padding: 0 },
|
||||||
header: { display: 'none' },
|
header: { display: 'none' },
|
||||||
mask: { position: 'absolute', top: '4rem', height: 'calc(100dvh - 4rem)', backgroundColor: 'transparent' },
|
mask: { position: 'absolute', top: '3.5rem', height: 'calc(100dvh - 3.5rem)', backgroundColor: 'transparent' },
|
||||||
}}
|
}}
|
||||||
rootStyle={{ zIndex: 59 }}
|
|
||||||
className="[&_.ant-drawer-content]:bg-white [&_.ant-drawer-content]:text-black dark:[&_.ant-drawer-content]:bg-[#0b0b0b] dark:[&_.ant-drawer-content]:text-white dark:[&_.ant-drawer-body]:bg-[#0b0b0b] dark:[&_.ant-drawer-body]:text-white"
|
className="[&_.ant-drawer-content]:bg-white [&_.ant-drawer-content]:text-black dark:[&_.ant-drawer-content]:bg-[#0b0b0b] dark:[&_.ant-drawer-content]:text-white dark:[&_.ant-drawer-body]:bg-[#0b0b0b] dark:[&_.ant-drawer-body]:text-white"
|
||||||
>
|
>
|
||||||
<div data-alt="drawer-container" className="h-full flex flex-col">
|
<div data-alt="drawer-container" className="h-full flex flex-col">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user