Skip to content

Commit

Permalink
Center-align unit picker icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Aug 26, 2023
1 parent 158040c commit 85beced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/core/components/individual_sim_ui/apl_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export class APLUnitPicker extends UnitPicker<Player<any>> {
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 85beced

Please sign in to comment.