forked from rDrama/rDrama
1
0
Fork 0

add pfp to user suggestor

master
Aevann 2024-03-07 18:30:01 +02:00
parent 67930ef430
commit 9b6732ba6f
2 changed files with 10 additions and 0 deletions

View File

@ -7795,3 +7795,7 @@ table.border-0 * {
#bank-statement tbody a {
color: var(--primary) !important;
}
.inline-modal-option.user-option span {
margin-left: 0 !important;
}

View File

@ -113,6 +113,11 @@ function populate_inline_user_modal(results, textbox)
let user_option = document.createElement("div");
user_option.className = "inline-modal-option user-option " + (i === 1 ? "selected" : "");
user_option.tabIndex = 0;
let user_option_img = document.createElement("img");
user_option_img.className = "pp20";
// This is a bit
user_option_img.src = `/@${name}/pic`
let user_option_text = document.createElement("span");
user_option_text.textContent = name;
@ -126,6 +131,7 @@ function populate_inline_user_modal(results, textbox)
}
});
// Pack
user_option.appendChild(user_option_img);
user_option.appendChild(user_option_text);
inline_carot_modal.appendChild(user_option);
}