Commit f2f8c8d8 authored by timel's avatar timel Committed by Chunchi Che

fix: small

parent 289f9044
Pipeline #27898 passed with stages
in 8 minutes and 45 seconds
...@@ -15,18 +15,14 @@ export interface ChainProps { ...@@ -15,18 +15,14 @@ export interface ChainProps {
/* 这里有个妥协的实现:墓地,除外区,额外卡组的连锁图标会被卡片遮挡,原因不明, /* 这里有个妥协的实现:墓地,除外区,额外卡组的连锁图标会被卡片遮挡,原因不明,
* 因此这里暂时采取移动一个身位的方式进行解决。最好的解决方案应该是UI上连锁图标和 * 因此这里暂时采取移动一个身位的方式进行解决。最好的解决方案应该是UI上连锁图标和
* 场地解耦。 */ * 场地解耦。 */
export const BgChain: React.FC<ChainProps> = ({ export const BgChain: React.FC<ChainProps> = ({ chains, nBelow = 1, op }) => (
chains,
nBelow: nCardsBelow = 1,
op,
}) => (
<div <div
className={classnames(styles.container, { className={classnames(styles.container, {
[styles.op]: op, [styles.op]: op,
})} })}
style={{ style={{
// @ts-ignore // @ts-ignore
"--n": nCardsBelow, "--n": nBelow,
}} }}
> >
{/* 暂时只适配最后的连锁,不然肯定会出现错位 */} {/* 暂时只适配最后的连锁,不然肯定会出现错位 */}
......
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