mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-14 01:16:17 +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
|
<Popover
|
||||||
id={popoverId}
|
id={popoverId}
|
||||||
open={isPopoverOpen}
|
open={isPopoverOpen}
|
||||||
anchorEl={anchor}
|
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
anchorOrigin={{
|
|
||||||
vertical: 'bottom',
|
|
||||||
horizontal: 'left',
|
|
||||||
}}
|
|
||||||
transformOrigin={{
|
|
||||||
vertical: 'top',
|
|
||||||
horizontal: 'left',
|
|
||||||
}}
|
|
||||||
PaperProps={{
|
|
||||||
sx: (theme) => ({
|
|
||||||
maxWidth: '45vw',
|
|
||||||
}),
|
|
||||||
}}
|
|
||||||
disableScrollLock={true}
|
disableScrollLock={true}
|
||||||
|
sx={{
|
||||||
|
'& .MuiPopover-paper': {
|
||||||
|
position: 'fixed',
|
||||||
|
top: '50% !important',
|
||||||
|
left: '50% !important',
|
||||||
|
transform: 'translate(-50%, -50%) !important',
|
||||||
|
},
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{newStrategyDropdownEnabled ? (
|
{newStrategyDropdownEnabled ? (
|
||||||
<FeatureStrategyMenuCards
|
<FeatureStrategyMenuCards
|
||||||
|
Loading…
Reference in New Issue
Block a user