Skip to content

Commit

Permalink
[@mantine/core] Popover: Set default width to max-content to reduce p…
Browse files Browse the repository at this point in the history
…osition shift in some cases (#2500)
  • Loading branch information
rtivital committed Oct 22, 2022
1 parent ce0647b commit 1e524e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 40 deletions.
1 change: 1 addition & 0 deletions src/mantine-core/src/Popover/Popover.tsx
Expand Up @@ -142,6 +142,7 @@ const defaultProps: Partial<PopoverProps> = {
clickOutsideEvents: ['mousedown', 'touchstart'],
zIndex: getDefaultZIndex('popover'),
__staticSelector: 'Popover',
width: 'max-content',
};

export function Popover(props: PopoverProps) {
Expand Down
39 changes: 0 additions & 39 deletions src/mantine-demos/src/demos/core/Popover/Popover.demo.arrow.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/mantine-demos/src/demos/core/Popover/index.ts
Expand Up @@ -2,5 +2,4 @@ export { usage } from './Popover.demo.usage';
export { form } from './Popover.demo.form';
export { hover } from './Popover.demo.hover';
export { sameWidth } from './Popover.demo.sameWidth';
export { arrow } from './Popover.demo.arrow';
export { inline } from './Popover.demo.inline';

0 comments on commit 1e524e6

Please sign in to comment.