aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/card_thumb.svelte10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/card_thumb.svelte b/src/components/card_thumb.svelte
index 39a996f..8b82241 100644
--- a/src/components/card_thumb.svelte
+++ b/src/components/card_thumb.svelte
@@ -12,6 +12,14 @@
function onDragStart(e) {
e.dataTransfer.setData('text', JSON.stringify({id, area, idx}))
}
+
+ function thumbImage(id) {
+ let url = cardImageUrl(id)
+ if (url.includes('ygopro-super-pre')) {
+ return url;
+ }
+ return url + '!thumb2';
+ }
</script>
{#if id}
@@ -23,7 +31,7 @@
ondragstart={onDragStart}
onclick={()=>{onhover();showMobileInfo();}}
height="100%"
- src={cardImageUrl(id) + "!thumb2"}
+ src={thumbImage(id)}
alt="yugioh card {id}"
/>
{#if limitNum > 0}