From 2007b6735a233a727b78e3d0654f2307bef426dc Mon Sep 17 00:00:00 2001
From: madelson <1269046+madelson@users.noreply.github.com>
Date: Thu, 20 Jun 2024 23:02:14 -0400
Subject: [PATCH] Ensure all html templates are wrapped in single elements
Fixes searching for "alpha"
---
gallery/gallery.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gallery/gallery.js b/gallery/gallery.js
index 36c0361..3512907 100644
--- a/gallery/gallery.js
+++ b/gallery/gallery.js
@@ -40,8 +40,8 @@ function cardTemplate(card) {
${() => card.contributionInfo
- ? html`UWC version contributed by ${card.contributionInfo.contributor}
- ${() => artAttribution(card.showFront ? card.contributionInfo.front : card.contributionInfo.back)}`
+ ? html`
UWC version contributed by ${card.contributionInfo.contributor}
+ ${() => artAttribution(card.showFront ? card.contributionInfo.front : card.contributionInfo.back)}
`
: card.universesWithinImage ? 'Official Universes Within card'
: ''}
@@ -56,7 +56,7 @@ function cardTemplate(card) {
${() => card.showFront ? "BACK" : "FRONT"}
`}
${() => card.contributionInfo &&
- html`
+ html`
MTG Card Builder
`}
@@ -65,8 +65,8 @@ function cardTemplate(card) {
function artAttribution(face) {
return !face.artist ? ''
- : face.isMtgArt ? html`
MTG ART: ${face.artName} by ${face.artist}`
- : html`
ART: ${face.artName} by ${face.artist}`;
+ : face.isMtgArt ? html`
MTG ART: ${face.artName} by ${face.artist}`
+ : html`
ART: ${face.artName} by ${face.artist}`;
}
function getImageUrl(card) {