From 84df0c65f50d32eea45f7f0ea5f2d7217dc0d932 Mon Sep 17 00:00:00 2001 From: Freek Date: Wed, 7 Feb 2024 17:42:46 +0100 Subject: [PATCH] style(skill-overview): improve styling + updated changelog --- CHANGELOG.md | 4 ++ .../player/player-skill.component.ts | 6 +- .../player/player-skills.component.ts | 62 +++++++++---------- 3 files changed, 35 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3319ef0..1f4eb75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2024/02/07 + +- skill overview in xp tracker + ## 2024/01/24 - Fix scurrius being added breaking hiscores diff --git a/src/app/common/components/player/player-skill.component.ts b/src/app/common/components/player/player-skill.component.ts index 811f4cd..d13208e 100644 --- a/src/app/common/components/player/player-skill.component.ts +++ b/src/app/common/components/player/player-skill.component.ts @@ -6,10 +6,10 @@ import { IconDirective } from '../../directives/icon/icon.directive'; standalone: true, selector: 'player-skill', template: ` -
+
@if (skill) { - -
{{ skill.level }}
+ +
{{ skill.level }}
} @else {
} diff --git a/src/app/common/components/player/player-skills.component.ts b/src/app/common/components/player/player-skills.component.ts index e613464..8b90df0 100644 --- a/src/app/common/components/player/player-skills.component.ts +++ b/src/app/common/components/player/player-skills.component.ts @@ -8,48 +8,42 @@ import { PlayerSkillWidgetComponent } from './player-skill.component'; selector: 'player-skills', template: `
+ + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + +
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [IconDirective, PlayerSkillWidgetComponent], }) export class PlayerSkillsWidgetComponent { + get skills(): Hiscore['skills'] | undefined { + return this.hiscore?.skills; + } + @Input() hiscore?: Hiscore; }