diff --git a/app/javascript/mastodon/components/dropdown_menu.tsx b/app/javascript/mastodon/components/dropdown_menu.tsx index 42130ab597..afcd4176e0 100644 --- a/app/javascript/mastodon/components/dropdown_menu.tsx +++ b/app/javascript/mastodon/components/dropdown_menu.tsx @@ -333,6 +333,7 @@ interface DropdownProps { disabled?: boolean; scrollable?: boolean; placement?: Placement; + offset?: OffsetValue; /** * Prevent the `ScrollableList` with this scrollKey * from being scrolled while the dropdown is open @@ -348,7 +349,6 @@ interface DropdownProps { onItemClick?: ItemClickFn; } -const offset = [5, 5] as OffsetValue; const popperConfig = { strategy: 'fixed' } as UsePopperOptions; export const Dropdown = ({ @@ -361,6 +361,7 @@ export const Dropdown = ({ disabled, scrollable, placement = 'bottom', + offset = [5, 5], status, forceDropdown = false, renderItem, diff --git a/app/javascript/mastodon/components/status/boost_button.tsx b/app/javascript/mastodon/components/status/boost_button.tsx index 64bda4dcaa..49bdc953e1 100644 --- a/app/javascript/mastodon/components/status/boost_button.tsx +++ b/app/javascript/mastodon/components/status/boost_button.tsx @@ -134,6 +134,8 @@ export const StatusBoostButton: FC = ({ return (