diff --git a/src/views/gallery/gallery-tile.vue b/src/views/gallery/gallery-tile.vue index 7065eda..fffb8c9 100644 --- a/src/views/gallery/gallery-tile.vue +++ b/src/views/gallery/gallery-tile.vue @@ -15,6 +15,14 @@ defineEmits<{ }>() const title = computed(() => getTitleFromEntryOrId(props.entry, props.id)) +const styles = computed(() => { + const stylesReturn: Record = {} + if (!!props.entry.thumbnailBackground) { + stylesReturn.background = props.entry.thumbnailBackground + } + stylesReturn['object-position'] = props.entry.thumbnailPosition || 'center center' + return stylesReturn +})