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