Commit 60d1d770 authored by Tom Quirk's avatar Tom Quirk

Use smaller design image for design list item

parent 99842868
......@@ -43,6 +43,11 @@ export default {
required: false,
default: true,
},
imageV432x230: {
type: String,
required: false,
default: null,
},
},
data() {
return {
......@@ -80,7 +85,7 @@ export default {
return this.imageLoading || this.isUploading;
},
imageLink() {
return this.isInView ? this.image : '';
return this.isInView ? this.imageV432x230 || this.image : '';
},
},
methods: {
......
......@@ -4,4 +4,5 @@ fragment DesignListItem on Design {
event
filename
notesCount
imageV432x230
}
......@@ -53,6 +53,7 @@ export const designUploadOptimisticResponse = files => {
__typename: 'Design',
id: -uniqueId(),
image: '',
imageV432x230: '',
filename: file.name,
fullPath: '',
notesCount: 0,
......
---
title: "Prefer smaller image size for design cards in Design Management"
merge_request: 24828
author:
type: added
......@@ -197,6 +197,7 @@ describe('Design management index page', () => {
__typename: 'Design',
id: expect.anything(),
image: '',
imageV432x230: '',
filename: 'test',
fullPath: '',
event: 'NONE',
......
......@@ -85,6 +85,7 @@ describe('optimistic responses', () => {
__typename: 'Design',
id: -1,
image: '',
imageV432x230: '',
filename: 'test',
fullPath: '',
notesCount: 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment