Skip to content

Commit

Permalink
fix: ensure popover toolbar item does not grow
Browse files Browse the repository at this point in the history
  • Loading branch information
stropitek committed Oct 18, 2024
1 parent e76b171 commit f863ab8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,18 @@ Toolbar.PopoverItem = function ToolbarPopoverItem(
`}
targetProps={{
style: {
position: 'relative',
fontSize: '1.125em',
width: 'fit-content',
height: 'fit-content',
},
}}
renderTarget={({ isOpen, className, ...targetProps }) => (
<span {...targetProps} style={{ flex: '0 0 auto' }}>
<Toolbar.Item isPopover {...itemProps} />
</span>
)}
{...other}
>
<Toolbar.Item isPopover {...itemProps} />
</Popover>
/>
);
};

Expand Down

0 comments on commit f863ab8

Please sign in to comment.