From 32423a876de18daeb3a6d7725ce76c7b067f4362 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Tue, 21 Mar 2023 19:15:06 +0000 Subject: [PATCH] Minor fixes for accolades, timezones and logos --- website/src/components/website/ContentThing.vue | 2 +- website/src/components/website/schedule/TimezoneSwapper.vue | 2 +- website/src/views/sub-views/PlayerMain.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/components/website/ContentThing.vue b/website/src/components/website/ContentThing.vue index 60e431a9..f80cd1ee 100644 --- a/website/src/components/website/ContentThing.vue +++ b/website/src/components/website/ContentThing.vue @@ -61,7 +61,7 @@ export default { }, logo () { if (!this.theme || !this.theme.default_logo) return null; - return resizedImage(this.theme, ["small_logo", "default_logo"], "h-120"); + return resizedImage(this.theme, ["small_logo", "default_logo"], "s-120"); }, headshot () { if (!this.thing) return null; diff --git a/website/src/components/website/schedule/TimezoneSwapper.vue b/website/src/components/website/schedule/TimezoneSwapper.vue index f61e74d5..7636f4a4 100644 --- a/website/src/components/website/schedule/TimezoneSwapper.vue +++ b/website/src/components/website/schedule/TimezoneSwapper.vue @@ -13,7 +13,7 @@ import informal from "spacetime-informal"; function getAbbrev(timezone) { const display = informal.display(timezone); - return spacetime.now().isDST() ? display.daylight.abbrev : display.standard.abbrev; + return spacetime.now(timezone).isDST() ? display.daylight.abbrev : display.standard.abbrev; } function getLocation(timezone) { return timezone.split("/")[1].replace(/_/g, " "); diff --git a/website/src/views/sub-views/PlayerMain.vue b/website/src/views/sub-views/PlayerMain.vue index 4ef8b5c8..907f031f 100644 --- a/website/src/views/sub-views/PlayerMain.vue +++ b/website/src/views/sub-views/PlayerMain.vue @@ -61,7 +61,7 @@ export default { return [ // team things - ...(this.player.member_of ? [].concat(...this.player.member_of.map(e => e.accolades).filter(e => !!e)) : []), + ...(this.player.member_of ? [].concat(...this.player.member_of.map(e => (e.accolades || []).filter(a => a?.show_for_players)).filter(Boolean)) : []), ...(this.player.accolades ? this.player.accolades : []) ]; },