Skip to content

Commit df5698d

Browse files
mkg20001claude
andcommitted
fix(ui): show caption only for reply button
- New post: icon only with tooltip - Reply: icon + "Compose Reply" text 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8068aeb commit df5698d

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

ui/src/components/conversation/message_input.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,21 @@ pub fn PostInput(
6666
};
6767

6868
rsx! {
69-
// Compose button bar
70-
button {
71-
class: "p-3 bg-accent hover:bg-accent-hover text-white rounded-xl transition-colors",
72-
onclick: open_modal,
73-
title: if default_reply_to.is_some() { "Compose Reply" } else { "Compose Post" },
74-
Icon { icon: FaPen, width: 18, height: 18 }
69+
// Compose button - icon only for new post, with caption for reply
70+
if default_reply_to.is_some() {
71+
button {
72+
class: "flex items-center gap-2 px-4 py-2.5 bg-accent hover:bg-accent-hover text-white font-medium rounded-xl transition-colors",
73+
onclick: open_modal,
74+
Icon { icon: FaPen, width: 14, height: 14 }
75+
"Compose Reply"
76+
}
77+
} else {
78+
button {
79+
class: "p-3 bg-accent hover:bg-accent-hover text-white rounded-xl transition-colors",
80+
onclick: open_modal,
81+
title: "Compose Post",
82+
Icon { icon: FaPen, width: 18, height: 18 }
83+
}
7584
}
7685

7786
// Compose modal

0 commit comments

Comments
 (0)