diff --git a/src/App.vue b/src/App.vue index 8aaf82bc..84b15d1c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -75,7 +75,7 @@ - + SAVE CONFIG mdi-file-uploadUpload & Print mdi-alert-circle-outlineEmergency Stop diff --git a/src/pages/Files.vue b/src/pages/Files.vue index c8e8c42d..4da91781 100644 --- a/src/pages/Files.vue +++ b/src/pages/Files.vue @@ -53,7 +53,7 @@ G-Code Files - + mdi-upload mdi-folder-plus @@ -180,7 +180,7 @@ - + thumb.width === 400) !== -1 + item.thumbnails.findIndex(thumb => thumb.width >= 300 && thumb.width <= 400) !== -1 ) }, getBigThumbnail(item) { if (this.existsBigThumbnail(item)) { - const thumbnail = item.thumbnails.find(thumb => thumb.width === 400) + const thumbnail = item.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400) if (thumbnail) return thumbnail.data } return "" + }, + getThumbnailWidth(item) { + if (this.existsBigThumbnail(item)) { + const thumbnail = item.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400) + + if (thumbnail) return thumbnail.width + } + + return 400 } }, watch: {