From 4e5e8287c3aec5758f9074d430d34d4133a62a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8F=8E=EF=B8=8F=20Imer?= <98121322+YumoImer@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:26:44 -0800 Subject: [PATCH] fix: ThoughtChain style (#373) --- components/thought-chain/style/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/thought-chain/style/index.ts b/components/thought-chain/style/index.ts index 0aaf0018..eb8740a7 100644 --- a/components/thought-chain/style/index.ts +++ b/components/thought-chain/style/index.ts @@ -118,7 +118,7 @@ const genThoughtChainItemBeforePseudoStyle: GenerateThoughtChainItemStyle = (tok position: 'relative', '&::before': { - bottom: `${token.calc(token.itemGap).mul(-1).equal()}`, + bottom: calc(token.itemGap).mul(-1).equal(), }, }, [`& ${itemCls}-header, & ${itemCls}-content`]: { @@ -131,7 +131,7 @@ const genThoughtChainItemBeforePseudoStyle: GenerateThoughtChainItemStyle = (tok }, [`& ${itemCls}-header::before`]: { top: token.itemSize, - bottom: `${token.calc(token.itemGap).mul(-2).equal()}`, + bottom: calc(token.itemGap).mul(-2).equal(), }, [`& ${itemCls}-content::before`]: { top: '100%', @@ -180,7 +180,7 @@ const genThoughtChainItemStyle: GenerateThoughtChainItemStyle = (token) => { [`& ${itemCls}-title`]: { height: token.itemSize, - lineHeight: token.itemSize, + lineHeight: `${unit(token.itemSize)}`, maxHeight: token.itemSize, fontSize: token.itemFontSize,