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:
parent
28a69afe63
commit
827b8f274a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user