Enhance user and punisher avatar display in history table
Refactored the layout for player and punisher avatars by adding a container around usernames and aligning elements vertically. Updated the `getAvatarUrl` method to accept only UUID strings, streamlining its usage. Improved styling for better alignment and presentation.
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user