Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(chat-input): fix control bar height jump when TokenTag appears (#15643)

Inneic037609b8b9e
diff --git a/src/features/ChatInput/ActionBar/Token/TokenTag.tsx b/src/features/ChatInput/ActionBar/Token/TokenTag.tsx
index 03483315f8a..143613460d1 100644
--- a/src/features/ChatInput/ActionBar/Token/TokenTag.tsx
+++ b/src/features/ChatInput/ActionBar/Token/TokenTag.tsx
@@ -192,7 +192,7 @@ const Token = memo(() => {
mode={'used'}
value={totalToken}
size={{
- blockSize: 32,
+ blockSize: 28,
size: 18,
}}
text={{
diff --git a/src/features/ChatInput/ControlBar/index.tsx b/src/features/ChatInput/ControlBar/index.tsx
index d458fce215c..44f9dd59ac1 100644
--- a/src/features/ChatInput/ControlBar/index.tsx
+++ b/src/features/ChatInput/ControlBar/index.tsx
@@ -14,6 +14,7 @@ import WorkspaceControls from './WorkspaceControls';
const styles = createStaticStyles(({ css }) => ({
bar: css`
+ height: 28px;
padding-block: 0;
padding-inline: 4px;
`,