Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions registry/widgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@
"description": "Lists all MLB scores daily, with baserunner info and inning scores.",
"author": "ShmoobiJones",
"directory": "mlb-scores-tracker",
"readme_hash": "d3be8af0a9b72b2deeae6642ee4176e2edfcad4a",
"readme_hash": "0f983c68e4517b80200a76a21f5a8e4d8506adf6",
"time_added": "2025-05-12T19:44:14.8033Z",
"time_updated": "2025-10-13T23:38:06.284535452Z"
"time_updated": "2026-02-21T23:43:52.705528413Z"
},
{
"title": "Mealie Today's Meal",
Expand Down
12 changes: 8 additions & 4 deletions widgets/mlb-scores-tracker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
{{ $seriesLabel := .String "description" }}
{{ $seriesGame := .Int "seriesGameNumber" }}
{{ $isRegularSeries := or (eq $seriesDesc "Regular Season") (eq $seriesDesc "Regular Season 1") (eq $seriesDesc "Regular Season 2") (eq $seriesDesc "Regular Season 3") (eq $seriesDesc "Regular Season 4") }}
{{ $isPlayoffSeries := and (ne $seriesDesc "") (not $isRegularSeries) }}
{{ $isSpringTraining := eq $seriesDesc "Spring Training" }}
{{ $isPlayoffSeries := and (ne $seriesDesc "") (not $isRegularSeries) (not $isSpringTraining) }}
{{/* offense & base occupancy */}}
{{ $r1 := .Exists "linescore.offense.first" }}
{{ $r2 := .Exists "linescore.offense.second" }}
Expand Down Expand Up @@ -136,7 +137,7 @@
</svg>
{{ end }}
</span>
<span style="text-align:center;width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:0.9em;white-space:nowrap;">
<span style="text-align:center;width:{{ if $isSpringTraining }}105px{{ else }}90px{{ end }};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:0.9em;white-space:nowrap;">
{{ if eq $abs "Preview" }}
{{ $gameTime := (.String "gameDate" | parseTime "2006-01-02T15:04:05Z").In now.Location }}
<span style="color:var(--glance-muted-text)">{{ printf "%02d:%02d" $gameTime.Hour $gameTime.Minute }}</span>
Expand All @@ -148,7 +149,7 @@
<span>{{ $detailed }}</span>
{{ end }}
{{ if $isPlayoffSeries }}
<span style="font-size:0.9em;color:var(--glance-accent-color);margin-top:0;">
<span style="font-size:0.9em;color:var(--glance-accent-color);margin-top:0;white-space:nowrap;">
{{ if $seriesLabel }}
{{ $seriesLabel }}
{{ else if gt $seriesGame 0 }}
Expand All @@ -158,6 +159,9 @@
{{ end }}
</span>
{{ end }}
{{ if $isSpringTraining }}
<span style="font-size:0.72em;color:var(--glance-muted-text);margin-top:1px;letter-spacing:0.03em;">Spring Training</span>
{{ end }}
</span>
<span style="display:flex;align-items:center;width:80px;justify-content:flex-end;white-space:nowrap;">
{{ if and $live (eq $offTeamId $homeId) }}
Expand All @@ -184,4 +188,4 @@
</div>
</li>
{{ end }}
```
```