Skip to content

Commit 17655e8

Browse files
authored
Merge pull request #210 from os2display/feature/display-929-thumbnails
DISPLAY-929: Use thumbnails for media list if they are set
2 parents a463ad4 + 6dd8fa6 commit 17655e8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- [#210](https://github.com/os2display/display-admin-client/pull/210)
8+
Use thumbnails for media list if they are set
9+
710
## [1.3.3] - 2023-07-11
811

912
- [#208](https://github.com/os2display/display-admin-client/pull/208)

src/components/media/image-list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function ImageList({ media, multiple }) {
5252
onClick={() => selectImage(data)}
5353
>
5454
<img
55-
src={data.assets.uri}
55+
src={data.thumbnail ?? data.assets.uri}
5656
className="card-img-top"
5757
alt={data.description}
5858
/>

0 commit comments

Comments
 (0)