Commit 80ddb009 authored by timel's avatar timel

fix: small

parent 93a8d403
Pipeline #23015 passed with stages
in 17 minutes and 43 seconds
......@@ -232,6 +232,7 @@ const DeckZone: React.FC<{
value: CardMeta;
source: "main" | "extra" | "side" | "search";
}) => {
if (type === source) return;
editDeckStore.add(type, value);
if (source !== "search") {
editDeckStore.remove(source, value);
......@@ -293,7 +294,11 @@ const Card: React.FC<{
});
drag(ref);
return (
<div className={styles.card} ref={ref}>
<div
className={styles.card}
ref={ref}
style={{ opacity: isDragging ? 0 : 1 }}
>
<div className={styles.cardname}>{value.text.name}</div>
<YgoCard className={styles.cardcover} code={value.id} />
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment