+
+ {replyTo.username}
+
+ {replyTo.content}
+
+
diff --git a/ui/colony/src/components/MessageItem.tsx b/ui/colony/src/components/MessageItem.tsx
index 0303654..0438e45 100644
--- a/ui/colony/src/components/MessageItem.tsx
+++ b/ui/colony/src/components/MessageItem.tsx
@@ -60,22 +60,36 @@ export function MessageItem({ message, replyTarget, onReply }: Props) {
const cfg = TYPE_CONFIG[message.type] || TYPE_CONFIG.text;
const meta = message.metadata as Record
| null;
+ function scrollToMessage(id: string) {
+ const el = document.getElementById(`msg-${id}`);
+ if (el) {
+ el.scrollIntoView({ behavior: "smooth", block: "center" });
+ el.classList.add("!bg-primary/10");
+ setTimeout(() => el.classList.remove("!bg-primary/10"), 1500);
+ }
+ }
+
return (
- {/* Reply context */}
+ {/* Reply context — click to scroll to quoted message */}
{replyTarget && (
-
+
+
{replyTarget.content}
+
)}