diff --git a/packages/dataviews/src/components/dataviews-item-actions/index.tsx b/packages/dataviews/src/components/dataviews-item-actions/index.tsx index c1a1f84b99e624..47e65bc81cb171 100644 --- a/packages/dataviews/src/components/dataviews-item-actions/index.tsx +++ b/packages/dataviews/src/components/dataviews-item-actions/index.tsx @@ -57,6 +57,7 @@ interface ItemActionsProps< Item > { interface CompactItemActionsProps< Item > { item: Item; actions: Action< Item >[]; + isSmall?: boolean; } interface PrimaryActionsProps< Item > { @@ -214,7 +215,13 @@ export default function ItemActions< Item >( { }, [ actions, item ] ); if ( isCompact ) { - return ; + return ( + + ); } if ( hasOnlyOneActionAndIsPrimary( primaryActions, actions ) ) { @@ -250,12 +257,13 @@ export default function ItemActions< Item >( { function CompactItemActions< Item >( { item, actions, + isSmall, }: CompactItemActionsProps< Item > ) { return (