getting rid of another table and welcome click

This commit is contained in:
MathMan05 2024-07-24 15:27:34 -05:00
parent dc044ea464
commit c788bea40f
5 changed files with 35 additions and 25 deletions

View file

@ -316,10 +316,16 @@ class Message {
text.appendChild(texttxt);
build.appendChild(text);
texttxt.classList.add("flexltr");
const messaged = document.createElement("p");
const messaged = document.createElement("span");
div["txt"] = messaged;
messaged.textContent = "welcome: " + this.author.username;
messaged.textContent = "welcome: ";
texttxt.appendChild(messaged);
const username = document.createElement("span");
username.textContent = this.author.username;
this.author.profileclick(username);
this.author.bind(username, this.guild);
texttxt.appendChild(username);
username.classList.add("username");
const time = document.createElement("span");
time.textContent = " " + formatTime(new Date(this.timestamp));
time.classList.add("timestamp");

View file

@ -126,23 +126,21 @@ class User {
if (Contextmenu.currentmenu != "") {
Contextmenu.currentmenu.remove();
}
const div = document.createElement("table");
const div = document.createElement("div");
if (x !== -1) {
div.style.left = x + "px";
div.style.top = y + "px";
div.classList.add("profile");
div.classList.add("profile", "flexttb");
}
else {
div.classList.add("hypoprofile");
}
{
const pfp = this.buildpfp();
const pfprow = document.createElement("tr");
div.appendChild(pfprow);
pfprow.appendChild(pfp);
div.appendChild(pfp);
}
{
const userbody = document.createElement("tr");
const userbody = document.createElement("div");
userbody.classList.add("infosection");
div.appendChild(userbody);
const usernamehtml = document.createElement("h2");