Skip to content

Commit

Permalink
Merge pull request #3561 from wowsims/apl
Browse files Browse the repository at this point in the history
Put back hiding unit labels when default is selected
  • Loading branch information
jimmyt857 authored Aug 26, 2023
2 parents 8faec1b + 85beced commit 2c5b540
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/core/components/individual_sim_ui/apl_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@ export class APLUnitPicker extends UnitPicker<Player<any>> {
sourceToValue: (src: UnitReference|undefined) => APLUnitPicker.refToValue(src, player, targetUI),
valueToSource: (val: UnitValue) => val.value,
values: [],
hideLabelWhenDefaultSelected: true,
});
this.unitSet = config.unitSet;
this.rootElem.classList.add('apl-unit-picker');

this.updateValues();
player.sim.unitMetadataEmitter.on(() => this.updateValues());
Expand Down
4 changes: 4 additions & 0 deletions ui/scss/core/components/individual_sim_ui/_apl_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
flex-direction: row;
width: auto;
}

.apl-unit-picker {
margin: auto 0.5rem auto 0 !important;
}

0 comments on commit 2c5b540

Please sign in to comment.