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.

🐛 fix(chat-input): wrap input-history ghost css in cx (#16516)

YuTengjing3debaa061683
diff --git a/src/features/ChatInput/InputEditor/index.tsx b/src/features/ChatInput/InputEditor/index.tsx
index 9b4b95ac103..12bc30a3719 100644
--- a/src/features/ChatInput/InputEditor/index.tsx
+++ b/src/features/ChatInput/InputEditor/index.tsx
@@ -64,12 +64,12 @@ const className = cx(
// Single-line dimmed preview of the highlighted history entry, shown through the
// editor's placeholder slot while the input is empty (history popup open).
-const ghostClassName = css`
+const ghostClassName = cx(css`
overflow: hidden;
display: block;
text-overflow: ellipsis;
white-space: nowrap;
-`;
+`);
type MentionOption = ISlashMenuOption | ISlashSectionOption;