From 9b6732ba6f36820764a54ce48b658ee613a97754 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Mar 2024 18:30:01 +0200 Subject: [PATCH] add pfp to user suggestor --- files/assets/css/main.css | 4 ++++ files/assets/js/emoji_modal/inline_user_modal.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index ab7a98ca9..d49cd9461 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -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; +} diff --git a/files/assets/js/emoji_modal/inline_user_modal.js b/files/assets/js/emoji_modal/inline_user_modal.js index d991e5cd1..03725de48 100644 --- a/files/assets/js/emoji_modal/inline_user_modal.js +++ b/files/assets/js/emoji_modal/inline_user_modal.js @@ -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); }