Skip to content

Commit

Permalink
Remove indicator for current temp as text
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kissling committed Oct 7, 2022
1 parent 079e7b1 commit 0ed82fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/clock-weather-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ export class ClockWeatherCard extends LitElement {
const weather = this.getWeather();
const currentTemp = Math.round(weather.attributes.temperature);
const indicatorPosition = isToday ? (100 / (maxTempDay - minTempDay)) * (currentTemp - minTempDay) : null;
const tempUnit = weather.attributes.temperature_unit;
if (indicatorPosition === null) {
return html``;
}
Expand All @@ -227,9 +226,6 @@ export class ClockWeatherCard extends LitElement {
<forecast-temperature-bar-current-indicator style="--position: ${indicatorPosition}%;">
<forecast-temperature-bar-current-indicator-dot style="--move-left: ${indicatorPosition > 50 ? '1' : '0'}">
</forecast-temperature-bar-current-indicator-dot>
<forecast-temperature-bar-current-indicator-temp style="${indicatorPosition > 50 ? '--right: 100%' : '--left: 100%'}">
${this.toConfiguredTempUnit(tempUnit, currentTemp)}
</forecast-temperature-bar-current-indicator-temp>
</forecast-temperature-bar-current-indicator>
`;
}
Expand Down
12 changes: 0 additions & 12 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,6 @@ export default css`
border: var(--border-width) solid var(--text-light-primary-color);
margin-left: calc(var(--move-left) * -1 * var(--bar-height));
}
forecast-temperature-bar-current-indicator-temp {
color: var(--text-light-primary-color);
position: relative !important;
display: grid;
align-items: center;
margin-right: calc(var(--bar-height) + 0.2rem);
margin-left: calc(var(--bar-height) + 0.2rem);
left: var(--left);
right: var(--right);
}
forecast-temperature-bar-range {
border-radius: calc(var(--bar-height) / 2);
Expand All @@ -122,7 +111,6 @@ export default css`
forecast-temperature-bar-current-indicator,
forecast-temperature-bar-current-indicator-dot,
forecast-temperature-bar-current-indicator-temp,
forecast-temperature-bar-background,
forecast-temperature-bar-range {
height: 100%;
Expand Down

0 comments on commit 0ed82fa

Please sign in to comment.