Skip to content

Commit

Permalink
DataViews: Fix table view cell wrapper and BlockPreviews
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 23, 2024
1 parent 38f8eaa commit 5a5347a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
}
.dataviews-view-table__cell-content-wrapper {
min-height: $grid-unit-40;
display: flex;
align-items: center;
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/dataviews/src/view-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function ViewTable( {
minWidth: 20,
} }
>
<span className="dataviews-view-table__cell-content-wrapper">
<div className="dataviews-view-table__cell-content-wrapper">
<SingleSelectionCheckbox
id={
getItemId( item ) || index
Expand All @@ -553,7 +553,7 @@ function ViewTable( {
data={ data }
primaryField={ primaryField }
/>
</span>
</div>
</td>
) }
{ visibleFields.map( ( field ) => (
Expand All @@ -567,7 +567,7 @@ function ViewTable( {
field.maxWidth || undefined,
} }
>
<span
<div
className={ classnames(
'dataviews-view-table__cell-content-wrapper',
{
Expand All @@ -580,7 +580,7 @@ function ViewTable( {
{ field.render( {
item,
} ) }
</span>
</div>
</td>
) ) }
{ !! actions?.length && (
Expand Down

0 comments on commit 5a5347a

Please sign in to comment.