Skip to content

Commit

Permalink
feat: 🎸 auto position combined link actions dropdown (#453)
Browse files Browse the repository at this point in the history
The new combined reference link action's dropdown will be positioned
automatically, if necessary, above the trigger button. This should
prevent the menu from being cut off when e.g. positioned at the end of a
page.
  • Loading branch information
DanweDE authored Oct 28, 2020
1 parent 2852a3f commit d5f4f8b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ function CombinedEntryLinkActions(props: LinkActionsProps) {
contentTypes={props.contentTypes}
hasPlusIcon={true}
useExperimentalStyles={true}
dropdownSettings={{
isAutoalignmentEnabled: true,
position: 'bottom-left',
}}
onSelect={(contentTypeId) => {
return contentTypeId ? props.onCreate(contentTypeId) : Promise.resolve();
}}
Expand Down

0 comments on commit d5f4f8b

Please sign in to comment.