1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-04 01:18:20 +02:00

chore: make popover center of screen (#9725)

This commit is contained in:
Jaanus Sellin 2025-04-09 09:41:30 +03:00 committed by GitHub
parent 28a69afe63
commit 827b8f274a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,23 +214,17 @@ export const FeatureStrategyMenu = ({
<Popover
id={popoverId}
open={isPopoverOpen}
anchorEl={anchor}
onClose={onClose}
onClick={onClose}
anchorOrigin={{
vertical: 'bottom',
horizontal: 'left',
}}
transformOrigin={{
vertical: 'top',
horizontal: 'left',
}}
PaperProps={{
sx: (theme) => ({
maxWidth: '45vw',
}),
}}
disableScrollLock={true}
sx={{
'& .MuiPopover-paper': {
position: 'fixed',
top: '50% !important',
left: '50% !important',
transform: 'translate(-50%, -50%) !important',
},
}}
>
{newStrategyDropdownEnabled ? (
<FeatureStrategyMenuCards