restructure wide/enhanced settings close #205

This commit is contained in:
Matt Walsh
2026-04-13 14:36:15 -05:00
parent 42f1f66117
commit 63e089451d
6 changed files with 84 additions and 13 deletions

View File

@@ -195,7 +195,7 @@ class CurrentWeather extends WeatherDisplay {
// get location (city name) from StationInfo if available (allows for overrides)
// longer name allowed if in wide-enhanced
const locationLimit = (settings.wide?.value && settings.enhancedScreens?.value) ? 25 : 20;
const locationLimit = (settings.wide?.value && settings.enhanced?.value) ? 25 : 20;
const location = (StationInfo[this.data.station.properties.stationIdentifier]?.city ?? locationCleanup(this.data.station.properties.name)).substr(0, locationLimit);
const fill = {