Skip to content

Commit

Permalink
Add offset to popover elements (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok authored Nov 30, 2023
1 parent 8b35c1a commit d0c5b77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const DropdownContent = ({
$type="dropdown-menu"
$showArrow={showArrow}
as={ContentElement}
sideOffset={4}
loop
{...props}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const PopoverContent = ({
$type="popover"
$showClose={showClose}
$showArrow={showArrow}
sideOffset={4}
{...props}
>
{showClose && (
Expand Down
1 change: 1 addition & 0 deletions src/components/SplitButton/SplitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const SplitButton = ({
as={Dropdown.Content}
side={side}
$width={width}
sideOffset={4}
align="end"
>
{menu.map((item: Menu, index: number) => (
Expand Down

1 comment on commit d0c5b77

@vercel
Copy link

@vercel vercel bot commented on d0c5b77 Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui-clickhouse.vercel.app
click-ui.vercel.app
click-ui-git-main-clickhouse.vercel.app

Please sign in to comment.