Make selected state more noticeable and sort the value array

This commit is contained in:
Samuel Elliott 2018-03-16 01:21:44 +00:00
parent 094ef7e173
commit 533d4aead1
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,9 @@ export default class GuildSetting extends Setting {
* @param {SettingUpdatedEvent} updatedSetting
*/
async setValueHook(updatedSetting) {
this.value.sort();
this.changed = !Utils.compare(this.args.value, this.args.saved_value);
const newGuilds = [];
let error;

View File

@ -10,7 +10,7 @@
margin: 10px 10px 0 0;
border-radius: 50%;
cursor: pointer;
transition: border-radius .4s cubic-bezier(0.5, 0, 0.27, 1.55), background-color .4s cubic-bezier(0.5, 0, 0.27, 1.55), box-shadow .4s cubic-bezier(0.5, 0, 0.27, 1.55);
transition: border-radius .4s cubic-bezier(0.5, 0, 0.27, 1.55), background-color .4s cubic-bezier(0.5, 0, 0.27, 1.55), box-shadow .3s cubic-bezier(0.5, 0, 0.27, 1.55);
.bd-guild-text {
float: left;
@ -34,10 +34,10 @@
&.bd-active {
background-color: $colbdblue;
box-shadow: 0 0 7px 2px $colbdblue;
&.bd-guild-has-icon {
background-color: rgb(47, 49, 54);
box-shadow: 0 0 7px $colbdblue;
}
}
}