redesign DM profile pane UI with split view and avatars

- Update AppShell.js to split view into Conversations and Message History.
- Rename sidebar title to "Conversations".
- Update MessageThread.js to pass avatar URLs to bubbles.
- Update MessageBubble.js to render avatars and use flex layout for alignment.
- Update CSS to style message rows, avatars, and bubbles.
- Ensure peak animations match hashtag strip timing (600ms/800ms).
This commit is contained in:
google-labs-jules[bot] committed 2026-01-23 05:34:06 +00:00
1 parent 7ec337ab3d
commit 5eab37905d
7 files changed
+616 -298

No files matched your search

+5 -2
View File
@@ -16,6 +16,7 @@ export function MessageThread({
document: doc,
contact = {},
messages = [],
currentUserAvatarUrl = "",
state = "idle",
errorType = "",
privacyMode = "nip04",
@@ -128,10 +129,12 @@ export function MessageThread({
timeline.appendChild(DayDivider({ document: doc, label: message.label }));
return;
}
const isOutgoing = message.direction === "outgoing";
const bubble = MessageBubble({
document: doc,
message,
variant: message.direction === "outgoing" ? "outgoing" : "incoming",
variant: isOutgoing ? "outgoing" : "incoming",
avatarSrc: isOutgoing ? currentUserAvatarUrl : (contact.avatarSrc || ""),
});
timeline.appendChild(bubble);
});
@@ -152,7 +155,7 @@ export function MessageThread({
top: timeline.scrollHeight,
behavior: "smooth",
});
}, 600);
}, 800);
}, 600);
}
};