mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 12:22:28 +00:00
Add DM composer controls and status placeholders
This commit is contained in:
1 parent
5307e44682
commit
9547a5b0e8
6 files changed
+150
-14
No files matched your search
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user