Skip to content

Commit

Permalink
DataViews: Fix primary field misalignment in grid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Nov 14, 2024
1 parent a8a8747 commit 305a37c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/dataviews/src/dataviews-layouts/grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,9 @@ function GridItem< Item >( {
justify="space-between"
className="dataviews-view-grid__title-actions"
>
<HStack>
<div { ...clickablePrimaryItemProps }>
{ renderedPrimaryField }
</div>
</HStack>
<div { ...clickablePrimaryItemProps }>
{ renderedPrimaryField }
</div>
<ItemActions item={ item } actions={ actions } isCompact />
</HStack>
{ !! badgeFields?.length && (
Expand Down
2 changes: 2 additions & 0 deletions packages/dataviews/src/dataviews-layouts/grid/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 305a37c

Please sign in to comment.