Skip to content

Commit

Permalink
BACKLOG-22200: Change order with and height for media Picker card info (
Browse files Browse the repository at this point in the history
  • Loading branch information
hduchesne authored Jan 12, 2024
1 parent 58ca10e commit b377084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useMediaPickerInputData = uuids => {
}

const fieldData = data.jcr.result.map(imageData => {
const sizeInfo = (imageData.height && imageData.width) ? ` - ${parseInt(imageData.height.value, 10)}x${parseInt(imageData.width.value, 10)}px` : '';
const sizeInfo = (imageData.height && imageData.width) ? ` - ${parseInt(imageData.width.value, 10)}x${parseInt(imageData.height.value, 10)}px` : '';
const url = imageData.thumbnailUrl + (imageData.thumbnailUrl.indexOf('?') > 0 ? '&' : '?') + 'lastModified=' + imageData.lastModified?.value;
return {
uuid: imageData.uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('useMediaPickerInputData', () => {
error: undefined,
fieldData: [{
uuid: 'this-is-uuid',
info: 'image/jpeg - 1080x1920px',
info: 'image/jpeg - 1920x1080px',
name: 'a cake',
path: 'placeholder.jpg',
url: 'http://placeholder.jpg?t=thumbnail2&lastModified=tomorrow'
Expand Down

0 comments on commit b377084

Please sign in to comment.