Skip to content

Commit 4bf2bac

Browse files
committed
fix: prevent PermissionShield tooltip from getting clipped
Signed-off-by: Rishi Raj <[email protected]>
1 parent 4e23298 commit 4bf2bac

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎src/custom/permissions.tsx‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,26 @@ export const PermissionShield: React.FC<PermissionShieldProps> = ({
418418
disableFocusListener
419419
disableTouchListener
420420
slotProps={{
421+
popper: {
422+
modifiers: [
423+
{
424+
name: 'flip',
425+
enabled: true,
426+
options: {
427+
fallbackPlacements: ['bottom', 'right', 'left']
428+
}
429+
},
430+
{
431+
name: 'preventOverflow',
432+
enabled: true,
433+
options: {
434+
boundary: 'viewport',
435+
altAxis: true,
436+
padding: 8
437+
}
438+
}
439+
]
440+
},
421441
tooltip: {
422442
sx: {
423443
background: '#1A1A1A',

0 commit comments

Comments
 (0)