1.44 - Fix pulldown lables
This commit is contained in:
+3
-3
@@ -1324,7 +1324,6 @@ export function UTCIForecast() {
|
|||||||
${profileButtonOrder.slice(0, 3).map((key) => {
|
${profileButtonOrder.slice(0, 3).map((key) => {
|
||||||
const profile = FILTER_PROFILES[key];
|
const profile = FILTER_PROFILES[key];
|
||||||
const locked = profile.proOnly && !isPro;
|
const locked = profile.proOnly && !isPro;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<button
|
<button
|
||||||
key=${key}
|
key=${key}
|
||||||
@@ -1341,13 +1340,14 @@ export function UTCIForecast() {
|
|||||||
}}
|
}}
|
||||||
>${profile.icon} ${profile.label}${locked ? ' 🔒' : ''}</button>`;
|
>${profile.icon} ${profile.label}${locked ? ' 🔒' : ''}</button>`;
|
||||||
})}
|
})}
|
||||||
|
<span class="profile-divider" aria-hidden="true"></span>
|
||||||
<${CustomSelect}
|
<${CustomSelect}
|
||||||
key="activities"
|
key="activities"
|
||||||
value=${activityValue}
|
value=${activityValue}
|
||||||
isOn=${activeProfile === 'farming' || (activeProfile === 'outdoors' && activityVariantKeys.includes(outdoorsVariant))}
|
isOn=${activeProfile === 'farming' || (activeProfile === 'outdoors' && activityVariantKeys.includes(outdoorsVariant))}
|
||||||
noHide=${true}
|
noHide=${true}
|
||||||
hideLabel="🎯 Activities"
|
hideLabel="🎯 Activities"
|
||||||
buttonLabel=${activityValue === 'off' ? '🎯 Activities' : `🎯 Activities: ${activityLabel}`}
|
buttonLabel=${activityValue === 'off' ? '🎯 Activities' : ` ${activityLabel}`}
|
||||||
options=${activityOptions}
|
options=${activityOptions}
|
||||||
onChange=${(v) => {
|
onChange=${(v) => {
|
||||||
if (v === 'off') {
|
if (v === 'off') {
|
||||||
@@ -1376,7 +1376,7 @@ export function UTCIForecast() {
|
|||||||
isOn=${activeProfile === 'outdoors' && placeVariantKeys.includes(outdoorsVariant)}
|
isOn=${activeProfile === 'outdoors' && placeVariantKeys.includes(outdoorsVariant)}
|
||||||
noHide=${true}
|
noHide=${true}
|
||||||
hideLabel="🌤️ Places"
|
hideLabel="🌤️ Places"
|
||||||
buttonLabel=${placeValue === 'off' ? '🌤️ Places' : `🌤️ Places: ${placeLabel}`}
|
buttonLabel=${placeValue === 'off' ? '🌤️ Places' : `${placeLabel}`}
|
||||||
options=${placeOptions}
|
options=${placeOptions}
|
||||||
onChange=${(v) => {
|
onChange=${(v) => {
|
||||||
if (v === 'off') {
|
if (v === 'off') {
|
||||||
|
|||||||
Reference in New Issue
Block a user