Commit 385d3139 authored by Chunchi Che's avatar Chunchi Che

fix small

parent 134cb632
Pipeline #26177 passed with stages
in 8 minutes and 54 seconds
......@@ -125,7 +125,7 @@ const BgOtherBlocks: React.FC<{ op?: boolean }> = ({ op }) => {
onClick={() => onBlockClick(field.interactivity)}
disabled={field.disabled}
highlight={!!field.interactivity}
chains={{ chains: field.chainIndex, op }}
chains={{ chains: field.chainIndex, field: true, op }}
/>
<BgBlock className={styles.deck} chains={{ chains: [] }} />
<BgBlock
......
......@@ -16,6 +16,7 @@
left: 100%;
}
.field,
.extra-deck {
right: 100%;
}
......
......@@ -11,17 +11,19 @@ export interface ChainProps {
banish?: boolean;
graveyard?: boolean;
extra?: boolean;
field?: boolean;
op?: boolean;
}
/* 这里有个妥协的实现:墓地,除外区,额外卡组的连锁图标会被卡片遮挡,
* 这里暂时采取移动一个身位的方式进行解决。最好的解决方案应该是UI上连锁图标和
/* 这里有个妥协的实现:墓地,除外区,额外卡组的连锁图标会被卡片遮挡,原因不明,
* 因此这里暂时采取移动一个身位的方式进行解决。最好的解决方案应该是UI上连锁图标和
* 场地解耦。 */
export const BgChain: React.FC<ChainProps> = ({
chains,
banish,
graveyard,
extra,
field,
op,
}) => (
<div
......@@ -29,6 +31,7 @@ export const BgChain: React.FC<ChainProps> = ({
[styles.banish]: banish,
[styles.graveyard]: graveyard,
[styles["extra-deck"]]: extra,
[styles.field]: field,
[styles.op]: op,
})}
>
......
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