Add DM composer controls and status placeholders

This commit is contained in:
thePR0M3TH3AN committed 2026-01-18 23:38:40 -05:00
1 parent 5307e44682
commit 9547a5b0e8
6 files changed
+150 -14

No files matched your search

+10
View File
@@ -45,6 +45,16 @@ export function MessageThread({
timeline.setAttribute("role", "log");
timeline.setAttribute("aria-live", "polite");
const newMessagesBanner = createElement(
doc,
"button",
"dm-message-thread__new",
"New messages",
);
newMessagesBanner.type = "button";
newMessagesBanner.setAttribute("aria-label", "Jump to newest messages");
timeline.appendChild(newMessagesBanner);
const stateEl = createElement(doc, "div", "dm-message-thread__state");
if (state === "loading") {