diff --git a/frontend/src/app/bans/history/history.component.html b/frontend/src/app/bans/history/history.component.html
index 12bd301..c302658 100644
--- a/frontend/src/app/bans/history/history.component.html
+++ b/frontend/src/app/bans/history/history.component.html
@@ -21,11 +21,19 @@
| {{ getType(entry) }} |
-
- {{ entry.username }}
+
+ ![{{entry.username}}'s Minecraft skin]()
+ {{ entry.username }}
+
+ |
+
+
+ ![{{entry.punishedBy}}'s Minecraft skin]()
+ {{ entry.punishedBy }}
+
|
- {{ entry.punishedBy }} |
{{ entry.reason }} |
{{ getPunishmentTime(entry) }} |
{{ getExpiredTime(entry) }} |
diff --git a/frontend/src/app/bans/history/history.component.scss b/frontend/src/app/bans/history/history.component.scss
index 084a1e6..2d8ff44 100644
--- a/frontend/src/app/bans/history/history.component.scss
+++ b/frontend/src/app/bans/history/history.component.scss
@@ -38,6 +38,16 @@ table tr td {
text-overflow: clip;
}
+.playerContainer {
+ display: inline-flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.username {
+ text-align: center;
+}
+
img {
vertical-align: middle;
border-style: none;
@@ -45,7 +55,6 @@ img {
.avatar {
margin-bottom: 5px;
- margin-right: 5px;
border-radius: 2px;
}
diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts
index 62a9a53..5975931 100644
--- a/frontend/src/app/bans/history/history.component.ts
+++ b/frontend/src/app/bans/history/history.component.ts
@@ -90,8 +90,8 @@ export class HistoryComponent implements OnInit, OnChanges {
});
}
- public getAvatarUrl(entry: PunishmentHistoryInner): string {
- let uuid = entry.uuid.replace('-', '');
+ public getAvatarUrl(entry: string): string {
+ let uuid = entry.replace('-', '');
return `https://crafatar.com/avatars/${uuid}?size=25&overlay`;
}
}