Merge pull request #4791 from GabrielInTheWorld/tile-enhances

Sorts categories in tile-view by prefix
This commit is contained in:
Emanuel Schütze 2019-06-17 17:17:38 +02:00 committed by GitHub
commit 578efe3345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,6 @@
min-width: 30%; min-width: 30%;
.tile-text { .tile-text {
padding: 8px 16px;
table { table {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -264,7 +264,9 @@ export class MotionListComponent extends ListViewBaseComponent<ViewMotion> imple
} }
} }
this.tileCategories = Object.values(this.informationOfMotionsInTileCategories); this.tileCategories = Object.values(this.informationOfMotionsInTileCategories).sort((a, b) =>
('' + a.prefix).localeCompare(b.prefix)
);
} }
/** /**