Skip to content

Commit

Permalink
fix: more tolerant with thumbnails sizes
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Dec 7, 2023
1 parent 465ddb5 commit 86ae18c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/components/dialogs/StartPrintDialog.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-dialog v-model="bool" :max-width="dialogWidth" @click:outside="closeDialog" @keydown.esc="closeDialog">
<v-dialog v-model="bool" :max-width="400" @click:outside="closeDialog" @keydown.esc="closeDialog">
<v-card>
<v-img v-if="file.big_thumbnail" contain :src="file.big_thumbnail" :style="bigThumbnailStyle" />
<v-card-title class="text-h5">{{ $t('Dialogs.StartPrint.Headline') }}</v-card-title>
Expand Down Expand Up @@ -71,10 +71,6 @@ export default class StartPrintDialog extends Mixins(BaseMixin) {
)
}
get dialogWidth() {
return this.file.big_thumbnail_width ?? 400
}
get bigThumbnailBackground() {
return this.$store.state.gui.uiSettings.bigThumbnailBackground ?? defaultBigThumbnailBackground
}
Expand Down
4 changes: 2 additions & 2 deletions src/store/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ export const allDashboardPanels = [
'webcam',
]

export const thumbnailSmallMin = 32
export const thumbnailSmallMin = 30
export const thumbnailSmallMax = 64
export const thumbnailBigMin = 256
export const thumbnailBigMin = 200

export const navigationWidth = 220
export const navigationItemHeight = 48
Expand Down

0 comments on commit 86ae18c

Please sign in to comment.