Skip to content

Commit

Permalink
change(item): image size to reference big instead of large
Browse files Browse the repository at this point in the history
- added preview as size for image item in case we have items that
  need to have the card 400px width
- set the big value as default as a safer default
  • Loading branch information
ichim-david committed Dec 9, 2022
1 parent 342c2a7 commit 0e4b85e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/blocks/Item/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ function Item({
extra,
header,
icon,
iconSize = 'huge',
iconSize = 'big',
iconTheme,
image,
imageSize = 'tile',
imageSize = 'big',
meta,
mode = 'view',
styles = {},
Expand All @@ -22,7 +22,7 @@ function Item({
<UiItem className={cx(styles?.theme)}>
{assetType === 'image' && image && (
<UiItem.Image
src={`${image}/@@images/image/preview`}
src={`${image}/@@images/image/${imageSize}`}
className={cx('ui', imageSize)}
alt={header || 'Item image'}
/>
Expand Down
9 changes: 5 additions & 4 deletions src/blocks/Item/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ export default ({ data }) => {
choices: [
['small', 'Small'],
['medium', 'Medium'],
['large', 'Large'],
['big', 'Large'],
['preview', 'Preview'],
],
default: 'small',
default: 'big',
},
icon: {
title: 'Icon name',
Expand All @@ -51,9 +52,9 @@ export default ({ data }) => {
choices: [
['small', 'Small'],
['medium', 'Medium'],
['large', 'Large'],
['big', 'Large'],
],
default: 'small',
default: 'big',
},
iconTheme: {
title: 'Icon theme',
Expand Down

0 comments on commit 0e4b85e

Please sign in to comment.