indicator for selected server

This commit is contained in:
Corban-Lee Jones 2024-09-16 16:24:12 +01:00
parent 3287227f62
commit 63edbf7c59
2 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,10 @@
background-color: var(--bs-secondary-bg);
}
.server-item-selector:active, .server-item-selector.active {
background-color: var(--bs-secondary-bg) !important;
}
/* widths */
.mw-10rem {

View File

@ -143,6 +143,8 @@ function addServerTemplate(serverPrimaryKey, serverGuildId, serverName, serverIc
// Bind the button for selecting this server
template.find(".server-item-selector").off("click").on("click", function() {
$(".server-item-selector").removeClass("active");
$(this).addClass("active");
selectServer(serverPrimaryKey);
});