discord: pad, underline invite link
This commit is contained in:
@@ -75,13 +75,15 @@ export class Discord {
|
||||
const link = document.getElementById("discord-invite") as HTMLAnchorElement;
|
||||
link.href = inv.invite;
|
||||
link.target = "_blank";
|
||||
let innerHTML = `<span class="mr-2">${window.lang.strings("joinTheServer")}</span>`;
|
||||
if (inv.icon != "") {
|
||||
link.innerHTML = `<span class="img-circle lg mr-4"><img class="img-circle" src="${inv.icon}" width="64" height="64"></span>${window.discordServerName}`;
|
||||
innerHTML += `<span class="img-circle lg mr-4"><img class="img-circle" src="${inv.icon}" width="64" height="64"></span>${window.discordServerName}`;
|
||||
} else {
|
||||
link.innerHTML = `
|
||||
innerHTML += `
|
||||
<span class="shield mr-4 bg-discord"><i class="ri-discord-fill ri-xl text-white"></i></span>${window.discordServerName}
|
||||
`;
|
||||
}
|
||||
link.innerHTML = innerHTML;
|
||||
});
|
||||
|
||||
private _checkVerified = () => {
|
||||
|
||||
+9
-3
@@ -35,9 +35,15 @@ window.modals = {} as Modals;
|
||||
(() => {
|
||||
window.modals.login = new Modal(document.getElementById("modal-login"), true);
|
||||
window.modals.email = new Modal(document.getElementById("modal-email"), false);
|
||||
window.modals.discord = new Modal(document.getElementById("modal-discord"), false);
|
||||
window.modals.telegram = new Modal(document.getElementById("modal-telegram"), false);
|
||||
window.modals.matrix = new Modal(document.getElementById("modal-matrix"), false);
|
||||
if (window.discordEnabled) {
|
||||
window.modals.discord = new Modal(document.getElementById("modal-discord"), false);
|
||||
}
|
||||
if (window.telegramEnabled) {
|
||||
window.modals.telegram = new Modal(document.getElementById("modal-telegram"), false);
|
||||
}
|
||||
if (window.matrixEnabled) {
|
||||
window.modals.matrix = new Modal(document.getElementById("modal-matrix"), false);
|
||||
}
|
||||
})();
|
||||
|
||||
window.notifications = new notificationBox(document.getElementById('notification-box') as HTMLDivElement, 5);
|
||||
|
||||
Reference in New Issue
Block a user