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(channel): compact IM-style composer with channel-named placeholder (#21994)

AmAzing-292e71e6afb8
diff --git a/.agents/ux/lobe-design-rules.md b/.agents/ux/lobe-design-rules.md
index 38b79664e06..717153be2a4 100644
--- a/.agents/ux/lobe-design-rules.md
+++ b/.agents/ux/lobe-design-rules.md
@@ -125,3 +125,9 @@ Source: reviewer correction on widget approval cards, lobehub#21936 acceptance r
Switching between items in one space (the approval bar's pending calls) uses `@lobehub/ui` `Tabs` (`size="small"`), not a hand-styled underline row. Do not decorate tab labels with emoji (no `🔧`). When two tabs would read the same (two dry runs of one tool), number them ("试运行组件 1", "试运行组件 2"). Read a reviewer's circled region against the exact screenshot coordinates before acting: in this case, two rounds of feedback on the tab strip were misread as feedback on the stage path below it.
Source: reviewer correction on the approval tab bar, lobehub#21936 acceptance round 2 (2026-10-30).
+
+## LOBE-UX-018 — Judge a component's size against the whole page, not only inside itself
+
+When reviewing a single component (a composer, toolbar, card or bar), look at it in a full-page screenshot next to its neighbours (sidebar rows, page header, the main chat input) and compare height, padding and visual weight. Checking only internal spacing and alignment misses a component that is the wrong size for the app. Record the comparison as evidence: which neighbours, and their measured heights.
+
+Source: the Channel composer audit checked internal asymmetry and button weight but missed that the whole composer was oversized; the user caught it (“输入框看起来有点太大了”, 2026-10-31).
diff --git a/locales/en-US/channel.json b/locales/en-US/channel.json
index 4fb205afa41..1d0c5971f1c 100644
--- a/locales/en-US/channel.json
+++ b/locales/en-US/channel.json
@@ -28,7 +28,7 @@
"chooseDevice": "Choose a device",
"chooseDirectory": "Choose directory",
"closeThread": "Close thread",
- "composer": "Send a message · type @ to choose who replies",
+ "composer": "Message #{{name}}",
"conversationEmpty": "Start the conversation",
"copyId": "Copy ID",
"copyIdSuccess": "Channel ID copied",
@@ -132,7 +132,7 @@
"renameFailed": "Could not rename the channel. Try again.",
"renameForbidden": "Only the channel owner or an administrator can rename this channel.",
"routing.receiving": "Agents receiving your message…",
- "routing.unassigned": "No reply assigned. Mention an Agent to continue.",
+ "routing.unassigned": "No Agent picked this up. Mention one to get a reply.",
"searchAgents": "Search Agents",
"send": "Send",
"sendFailed": "Message was not sent. Your draft is preserved; try again.",
@@ -149,9 +149,9 @@
"submit": "Create",
"thread": "Thread",
"threadArchivedNotice": "This thread is archived. Its replies stay readable, but it takes no new messages.",
- "threadComposer": "Reply in thread · type @ to choose who replies",
+ "threadComposer": "Reply in thread",
"threadDivider": "Replies in this thread",
- "threadEmpty": "Continue this topic in its own thread.",
+ "threadEmpty": "Keep discussing this message here.",
"title": "Channels",
"unarchive": "Unarchive channel",
"unarchiveSuccess": "Channel unarchived",
diff --git a/locales/zh-CN/channel.json b/locales/zh-CN/channel.json
index 6c40501335c..8c1ab45dec2 100644
--- a/locales/zh-CN/channel.json
+++ b/locales/zh-CN/channel.json
@@ -28,7 +28,7 @@
"chooseDevice": "选择设备",
"chooseDirectory": "选择工作目录",
"closeThread": "关闭线程",
- "composer": "发送消息,输入 @ 选择回复者",
+ "composer": "发消息到 #{{name}}",
"conversationEmpty": "开始一起讨论吧",
"copyId": "复制 ID",
"copyIdSuccess": "已复制频道 ID",
@@ -126,13 +126,13 @@
"recipients.many": "{{first}}、{{second}} 等 {{total}} 位 Agent 会回复",
"recipients.named": "{{names}} 会回复",
"recipients.noAgents": "频道里没有可以回复的 Agent",
- "recipients.noFollowers": "@ 一位 Agent,邀请它加入分支讨论",
+ "recipients.noFollowers": "@ 一位 Agent,邀请它加入线程",
"recipients.peopleOnly": "只 @ 了真人,不会有 Agent 回复",
"rename": "重命名频道",
"renameFailed": "频道没有改名成功,请重试。",
"renameForbidden": "只有频道所有者或管理员可以重命名频道。",
"routing.receiving": "Agent 接收消息中…",
- "routing.unassigned": "尚未分配回复者,可 @ Agent 继续。",
+ "routing.unassigned": "没有 Agent 接手这条消息,@ 一位 Agent 让它回复。",
"searchAgents": "搜索 Agent",
"send": "发送",
"sendFailed": "发送失败,草稿已保留,请重试。",
@@ -149,9 +149,9 @@
"submit": "创建",
"thread": "线程",
"threadArchivedNotice": "此线程已归档。回复仍可查看,但不再接收新消息。",
- "threadComposer": "在线程中回复,输入 @ 选择回复者",
+ "threadComposer": "在线程中回复",
"threadDivider": "此线程中的回复",
- "threadEmpty": "在这里继续这个话题。",
+ "threadEmpty": "在这里接着讨论这条消息。",
"title": "频道",
"unarchive": "取消归档",
"unarchiveSuccess": "频道已取消归档",
diff --git a/packages/locales/src/default/channel.ts b/packages/locales/src/default/channel.ts
index afbf97c76ba..e82a1a6ec40 100644
--- a/packages/locales/src/default/channel.ts
+++ b/packages/locales/src/default/channel.ts
@@ -87,8 +87,8 @@ export default {
'actionFailed': 'Something went wrong. Try again.',
'send': 'Send',
'sendFailed': 'Message was not sent. Your draft is preserved; try again.',
- 'composer': 'Send a message · type @ to choose who replies',
- 'threadComposer': 'Reply in thread · type @ to choose who replies',
+ 'composer': 'Message #{{name}}',
+ 'threadComposer': 'Reply in thread',
'stopReply': 'Stop reply',
'main': 'Channel conversation',
'startThread': 'Start thread',
@@ -99,7 +99,7 @@ export default {
'followers': 'Replies from: {{names}}',
'olderMessages': 'Older messages',
'latestMessages': 'Latest messages',
- 'threadEmpty': 'Continue this topic in its own thread.',
+ 'threadEmpty': 'Keep discussing this message here.',
'conversationEmpty': 'Start the conversation',
'mentionHint':
'Mention Agents to choose who replies. Without a mention, every Agent here replies.',
@@ -107,7 +107,7 @@ export default {
'attachments.failed': 'Upload failed. Try again.',
'attachments.limit': 'Attach up to {{count}} files.',
'routing.receiving': 'Agents receiving your message…',
- 'routing.unassigned': 'No reply assigned. Mention an Agent to continue.',
+ 'routing.unassigned': 'No Agent picked this up. Mention one to get a reply.',
'receipt.failedHint': 'Mention it again to retry.',
'recipients.all': 'All {{count}} Agents will reply',
'recipients.named': '{{names}} will reply',
diff --git a/src/features/Channels/ChannelConversation.tsx b/src/features/Channels/ChannelConversation.tsx
index 8abdc1b8f83..669121155b6 100644
--- a/src/features/Channels/ChannelConversation.tsx
+++ b/src/features/Channels/ChannelConversation.tsx
@@ -164,7 +164,9 @@ const Timeline = ({
draftKey={channelDraftKey(channelId, threadId)}
key={channelDraftKey(channelId, threadId)}
members={activeMembers}
- placeholder={t(threadId ? 'threadComposer' : 'composer')}
+ placeholder={
+ threadId ? t('threadComposer') : t('composer', { name: detail.channel.title })
+ }
onSend={async (content, mentions, requestKey, fileIds) => {
followLatest.current = true;
await channelActions.send({
diff --git a/src/features/Channels/Composer.tsx b/src/features/Channels/Composer.tsx
index 8efba1d4093..a570c901e21 100644
--- a/src/features/Channels/Composer.tsx
+++ b/src/features/Channels/Composer.tsx
@@ -51,7 +51,7 @@ export function Composer({
/** Where unsent input is kept; see {@link useComposerDraft}. */
draftKey: string;
members: ChannelPublicMember[];
- placeholder?: string;
+ placeholder: string;
onSend: (
content: string,
mentions: string[],
@@ -160,6 +160,7 @@ export function Composer({
aria-label={t('attachments.upload')}
disabled={busy || !canUpload}
icon={Paperclip}
+ size={{ blockSize: 28, size: 16 }}
title={reason || t('attachments.upload')}
/>
</Upload>
@@ -167,11 +168,11 @@ export function Composer({
<div {...stylex.props(styles.composerEditor)}>
<Editor
autoFocus
- aria-label={placeholder || t('composer')}
+ aria-label={placeholder}
content=""
editable={!busy}
editor={editor}
- placeholder={placeholder || t('composer')}
+ placeholder={placeholder}
plugins={plugins}
slashPlacement="top"
type="text"
@@ -230,10 +231,13 @@ export function Composer({
/>
</div>
{/* Replies run asynchronously, so Send never turns into Stop; each reply stops from the activity line. */}
+ {/* An empty composer keeps Send as a quiet icon, like an IM; it fills once there is a draft. */}
<SendButton
aria-label={t('send')}
disabled={busy || !hasDraft || attachments.blocked}
loading={busy}
+ size={28}
+ type={hasDraft ? 'primary' : 'text'}
onSend={() => void send()}
/>
</div>
diff --git a/src/features/Channels/styles.ts b/src/features/Channels/styles.ts
index d4fd9318d0d..abf463b3d15 100644
--- a/src/features/Channels/styles.ts
+++ b/src/features/Channels/styles.ts
@@ -150,15 +150,15 @@ export const styles = stylex.create({
display: 'flex',
alignItems: 'flex-end',
gap: 4,
- paddingBlock: 6,
- paddingInline: 6,
+ paddingBlock: 4,
+ paddingInline: 4,
},
composerEditor: {
overflowY: 'auto',
flex: '1',
minWidth: 0,
maxHeight: 240,
- paddingBlock: 5,
+ paddingBlock: 0,
},
/** Takes the composer's place while the channel or thread is archived. */
archivedNotice: {