indicator for selected server
This commit is contained in:
parent
3287227f62
commit
63edbf7c59
@ -80,6 +80,10 @@
|
|||||||
background-color: var(--bs-secondary-bg);
|
background-color: var(--bs-secondary-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.server-item-selector:active, .server-item-selector.active {
|
||||||
|
background-color: var(--bs-secondary-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* widths */
|
/* widths */
|
||||||
|
|
||||||
.mw-10rem {
|
.mw-10rem {
|
||||||
|
@ -143,6 +143,8 @@ function addServerTemplate(serverPrimaryKey, serverGuildId, serverName, serverIc
|
|||||||
|
|
||||||
// Bind the button for selecting this server
|
// Bind the button for selecting this server
|
||||||
template.find(".server-item-selector").off("click").on("click", function() {
|
template.find(".server-item-selector").off("click").on("click", function() {
|
||||||
|
$(".server-item-selector").removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
selectServer(serverPrimaryKey);
|
selectServer(serverPrimaryKey);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user