Skip to content

Commit

Permalink
Avoid fixed heights
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 17, 2023
1 parent 115cacd commit a14c48d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/dataviews/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@

.dataviews-view-grid__media {
width: 100%;
height: 200px;
min-height: 200px;

> * {
width: 100%;
height: 100%;
max-width: 100%;
object-fit: cover;
}
}
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/dataviews/view-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function ViewGrid( { data, fields, view, actions } ) {
field.id !== view.layout.mediaField
);
return (
<Grid gap={ 6 } columns={ 2 }>
<Grid gap={ 8 } columns={ 2 } alignment="top">
{ data.map( ( item, index ) => {
return (
<VStack key={ index }>
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function PagePages() {
size={
currentView.type === 'list'
? [ 'thumbnail', 'medium', 'large', 'full' ]
: [ 'large', 'medium', 'full', 'thumbnail' ]
: [ 'large', 'full', 'medium', 'thumbnail' ]
}
/>
) : null,
Expand Down

0 comments on commit a14c48d

Please sign in to comment.