From dd6f6d1d0138249109ef0a511032ed085801f28e Mon Sep 17 00:00:00 2001 From: Steven Crader Date: Mon, 23 Oct 2023 23:54:25 -0700 Subject: [PATCH] Fix Rants button due to Rumble format change --- src/components/open-chat/open-chat.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/open-chat/open-chat.ts b/src/components/open-chat/open-chat.ts index 6dfd99a..768ec84 100644 --- a/src/components/open-chat/open-chat.ts +++ b/src/components/open-chat/open-chat.ts @@ -45,14 +45,17 @@ export const addChatButton = (onclick: () => void): boolean => { textItem.textContent = "Rants" pillDivItem.appendChild(textItem) - const wellDivItem = document.createElement("div") as HTMLDivElement - wellDivItem.classList.add("chat-history--rant-progressbar--well") - listItem.appendChild(wellDivItem) - const progressBarDivItem = document.createElement("div") as HTMLDivElement progressBarDivItem.classList.add("chat-history--rant-progressbar") - progressBarDivItem.style.width = "100%" - wellDivItem.appendChild(progressBarDivItem) + listItem.appendChild(progressBarDivItem) + + const progressBarFillDivItem = document.createElement("div") as HTMLDivElement + progressBarFillDivItem.classList.add("chat-history--rant-progressbar--fill") + progressBarDivItem.appendChild(progressBarFillDivItem) + + const progressBarBackDivItem = document.createElement("div") as HTMLDivElement + progressBarBackDivItem.classList.add("chat-history--rant-progressbar--back") + progressBarDivItem.appendChild(progressBarBackDivItem) rantList.insertBefore(listItem, rantList.firstChild) return true