mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): render settingsmenu in portal, no zindex
This commit is contained in:
parent
54aef4959c
commit
0279a27f66
@ -5,6 +5,7 @@ import {
|
||||
MenuGroup,
|
||||
MenuItem,
|
||||
MenuList,
|
||||
Portal,
|
||||
useDisclosure,
|
||||
useGlobalMenuClose,
|
||||
} from '@invoke-ai/ui-library';
|
||||
@ -44,7 +45,8 @@ const SettingsMenu = () => {
|
||||
icon={<RiSettings4Line fontSize={20} />}
|
||||
boxSize={8}
|
||||
/>
|
||||
<MenuList zIndex={1}>
|
||||
<Portal>
|
||||
<MenuList>
|
||||
<MenuGroup title={t('upsell.professional')}>
|
||||
<SettingsUpsellMenuItem menuText={t('upsell.inviteTeammates')} menuIcon={PiUsersBold} />
|
||||
<SettingsUpsellMenuItem menuText={t('upsell.shareAccess')} menuIcon={PiShareNetworkFill} />
|
||||
@ -87,6 +89,7 @@ const SettingsMenu = () => {
|
||||
</AboutModal>
|
||||
</MenuGroup>
|
||||
</MenuList>
|
||||
</Portal>
|
||||
</Menu>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user