Fix competiting zIndex values between the Canvas Header and the Avatar dropdown menu
This commit is contained in:
@@ -70,7 +70,7 @@ export function DashboardCanvas({ layout, setLayout, onLayoutChange }) {
|
||||
as="header"
|
||||
position="sticky"
|
||||
top="0"
|
||||
zIndex="banner"
|
||||
zIndex="dropdown" // zIndex: 1100
|
||||
bg="base200"
|
||||
px={6}
|
||||
py={3}
|
||||
|
||||
@@ -18,7 +18,8 @@ export default function UserAvatarMenu({ name, avatar }) {
|
||||
</Box>
|
||||
</Menu.Trigger>
|
||||
<Portal>
|
||||
<Menu.Positioner zIndex="popover">
|
||||
{/* zIndex: overlay = 1300 */}
|
||||
<Menu.Positioner zIndex="overlay">
|
||||
<Menu.Content>
|
||||
<Menu.Item value="account">Account</Menu.Item>
|
||||
<Menu.Item value="settings">Settings</Menu.Item>
|
||||
|
||||
Reference in New Issue
Block a user