From 02f67b89c9130d9ce552e6fe3c6a382984932e36 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:15:01 +0900 Subject: [PATCH] DataViews: Fix primary field misalignment in grid layout (#66995) Co-authored-by: t-hamano Co-authored-by: youknowriad --- 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;