Skip to content

Commit

Permalink
Minor fixes for accolades, timezones and logos
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Mar 21, 2023
1 parent 852bc7e commit 32423a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/src/components/website/ContentThing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, " ");
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/sub-views/PlayerMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [])
];
},
Expand Down

0 comments on commit 32423a8

Please sign in to comment.