]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Make the "Just Now" button a badge
authorValerie Pond <redacted>
Thu, 13 Apr 2023 22:46:47 +0000 (23:46 +0100)
committerValerie Pond <redacted>
Thu, 13 Apr 2023 22:46:47 +0000 (23:46 +0100)
js/unrealircd-admin.js

index aa70e819059d63b7fb956d2e1edb5bf0689d0ada..c8fedebdcc8afc218d81d400e2bbb55754e1e171 100644 (file)
@@ -85,8 +85,9 @@ function generate_notif(title, body)
     theTitle.classList.add('mr-auto');
     theTitle.textContent = title;
     
-    const notiftime = document.createElement('small');
-    notiftime.textContent = "Just now"; // always just now I think right :D
+    const notiftime = document.createElement('div');
+    notiftime.classList.add('badge', 'rounded-pill', 'badge-primary', 'ml-1');
+    notiftime.textContent = 'Just now'; // always just now I think right :D
 
     const closebutton = document.createElement('button');
     closebutton.type = 'button';