diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-14 16:10:31 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-14 16:10:31 +1100 |
| commit | 96805eeb9edbbdde2277d155090c955cfa664506 (patch) | |
| tree | b06e80281dca99e8cd2c8af2d7f3447a6db699fb /src/components/InfoModal.vue | |
| parent | 3704ad2b88263705ee8352505845c38e0e5aa71f (diff) | |
Allow showing events without images
Add setting for showing such events
Fix searches not always avoiding filtered categories
Diffstat (limited to 'src/components/InfoModal.vue')
| -rw-r--r-- | src/components/InfoModal.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/InfoModal.vue b/src/components/InfoModal.vue index f709676..cd067e1 100644 --- a/src/components/InfoModal.vue +++ b/src/components/InfoModal.vue @@ -16,7 +16,7 @@ </div> <!-- Main content --> <div class="border-t border-stone-400 p-2 md:p-3"> - <div class="mt-1 mr-2 md:mb-2 md:mr-4 md:float-left"> + <div v-if="eventInfo.imgInfo != null" class="mt-1 mr-2 md:mb-2 md:mr-4 md:float-left"> <!-- Image --> <a :href="eventInfo.imgInfo.url" target="_blank" class="block w-fit mx-auto" :style="imgStyles"></a> <!-- Image Source --> @@ -153,7 +153,7 @@ const imgStyles = computed(() => { return { width: '200px', height: '200px', - backgroundImage: `url(${getImagePath(event.value.imgId)})`, + backgroundImage: event.value.imgId == null ? 'none' : `url(${getImagePath(event.value.imgId)})`, backgroundColor: store.color.bgDark, backgroundSize: 'cover', borderRadius: store.borderRadius + 'px', |
