From 3e095c0ae96ac02581adf5d6efb474211539d56c Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 23 Dec 2020 03:23:58 +0000 Subject: [PATCH] Better handle hidenames: true --- src/api.ts | 2 +- src/components/sidebar/PlayerListItem.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index aa83dce..4565831 100644 --- a/src/api.ts +++ b/src/api.ts @@ -523,7 +523,7 @@ export default { account: player.account || "", health: player.health || 0, armor: player.armor || 0, - name: player.name ? sanitizer.sanitize(player.name) : "Steve", + name: player.name ? sanitizer.sanitize(player.name) : "", sort: player.sort || 0, hidden: !world, location: { diff --git a/src/components/sidebar/PlayerListItem.vue b/src/components/sidebar/PlayerListItem.vue index 802ef10..d004782 100644 --- a/src/components/sidebar/PlayerListItem.vue +++ b/src/components/sidebar/PlayerListItem.vue @@ -126,6 +126,7 @@ export default defineComponent({ margin: 0; width: 100%; height: 100%; + min-height: 3.2rem; } &.player--hidden {