Skip to content

Commit f28dc8e

Browse files
Fix images pixelated because of border (#7732)
Do not show in changelog
1 parent 1f41749 commit f28dc8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

newIDE/app/src/AssetStore/ShopTiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const styles = {
3939
previewImage: {
4040
width: '100%',
4141
display: 'block',
42-
objectFit: 'cover',
42+
objectFit: 'contain',
4343
borderRadius: 8,
4444
border: '1px solid lightgrey',
4545
boxSizing: 'border-box', // Take border in account for sizing to avoid cumulative layout shift.

newIDE/app/src/MainFrame/EditorContainers/HomePage/LearnSection/EducationCurriculumLesson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const styles = {
3030
container: { maxWidth: 850 },
3131
thumbnail: {
3232
display: 'block', // Display as a block to prevent cumulative layout shift.
33-
objectFit: 'cover',
33+
objectFit: 'contain',
3434
verticalAlign: 'middle',
3535
borderRadius: 8,
3636
width: '100%',

newIDE/app/src/UI/ImageTileGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const styles = {
4646
},
4747
thumbnailImageWithDescription: {
4848
display: 'block', // Display as a block to prevent cumulative layout shift.
49-
objectFit: 'cover',
49+
objectFit: 'contain',
5050
verticalAlign: 'middle',
5151
width: '100%',
5252
borderRadius: 8,

0 commit comments

Comments
 (0)