From 305a37c3f01b14cc61d60ebd70474416c44b796f Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Thu, 14 Nov 2024 17:32:18 +0900 Subject: [PATCH] DataViews: Fix primary field misalignment in grid layout --- packages/dataviews/src/dataviews-layouts/grid/index.tsx | 8 +++----- packages/dataviews/src/dataviews-layouts/grid/style.scss | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/dataviews/src/dataviews-layouts/grid/index.tsx b/packages/dataviews/src/dataviews-layouts/grid/index.tsx index 91cc87ec7b35b6..e218172b7900aa 100644 --- a/packages/dataviews/src/dataviews-layouts/grid/index.tsx +++ b/packages/dataviews/src/dataviews-layouts/grid/index.tsx @@ -114,11 +114,9 @@ function GridItem< Item >( { justify="space-between" className="dataviews-view-grid__title-actions" > - -
- { renderedPrimaryField } -
-
+
+ { renderedPrimaryField } +
{ !! badgeFields?.length && ( diff --git a/packages/dataviews/src/dataviews-layouts/grid/style.scss b/packages/dataviews/src/dataviews-layouts/grid/style.scss index 55768240a18714..081adf51b5dc11 100644 --- a/packages/dataviews/src/dataviews-layouts/grid/style.scss +++ b/packages/dataviews/src/dataviews-layouts/grid/style.scss @@ -17,6 +17,8 @@ .dataviews-view-grid__primary-field { min-height: $grid-unit-40; // Preserve layout when there is no ellipsis button + display: flex; + align-items: center; &--clickable { width: fit-content;