From 0788bd891c8773f601900300866be8f6ad867bd4 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 28 Jan 2023 15:32:51 +1100 Subject: Tweak more styling Adjust image-source-info highlighting Prevent info-modal title from overlapping close-icon Don't display wikipedia citation for absent descriptions Include 'prototype' in clickable title --- src/components/InfoModal.vue | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'src/components') diff --git a/src/components/InfoModal.vue b/src/components/InfoModal.vue index 54b386d..5287312 100644 --- a/src/components/InfoModal.vue +++ b/src/components/InfoModal.vue @@ -7,7 +7,7 @@ class="absolute top-1 right-1 md:top-2 md:right-2 w-8 h-8 hover:cursor-pointer"/> -

+

{{event.title}}

@@ -43,8 +43,7 @@ :style="{backgroundColor: store.color.bg, color: store.color.text}">
  • Source: - Link - + Link
  • Artist: @@ -57,21 +56,18 @@
  • License: {{eventInfo.imgInfo.license}}
  • Obtained via: - Wikipedia - + Wikipedia
  • Changes: - Cropped and resized + Cropped & resized
  • @@ -79,13 +75,17 @@ -
    {{eventInfo.desc}}
    -
    (No description found)
    -
    - From Wikipedia - (via Wikidata) - +
    +
    + {{eventInfo.desc}} +
    +
    + From Wikipedia + (via Wikidata) + +
    +
    (No description found)
    @@ -188,9 +188,14 @@ const imgStyles = computed(() => { }; }); -const sourceLabelStyles = computed(() => { +const sourceLabelStyles = computed((): Record => { return { - color: store.color.altDark, + color: store.color.textDark, + fontWeight: 'bold', }; }); + +const aStyles = computed((): Record => ({ + color: store.color.altDark, +})); -- cgit v1.2.3