Skip to content

Commit 8247b65

Browse files
committed
[TASK] bugfixes
1 parent 27e079b commit 8247b65

File tree

5 files changed

+58
-24
lines changed

5 files changed

+58
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Version - 1.0.2](https://img.shields.io/badge/Version-1.0.2-009688?style=for-the-badge)](https://github.com/KartoffelToby/better-thermostat-ui-card)
1+
[![Version - 1.0.3](https://img.shields.io/badge/Version-1.0.3-009688?style=for-the-badge)](https://github.com/KartoffelToby/better-thermostat-ui-card)
22
[![Discord](https://img.shields.io/discord/925725316540923914.svg?style=for-the-badge)](https://discord.gg/9BUegWTG3K)
33
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)
44

dist/better-thermostat-ui-card.js

Lines changed: 31 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "better-thermostat-ui-card",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Lovelace better-thermostat-ui",
55
"keywords": [
66
"home-assistant",

src/better-thermostat-ui.ts

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,19 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
192192
public static styles: CSSResultGroup = css `
193193
:host {
194194
display: block;
195+
overflow: hidden;
196+
box-sizing: border-box;
197+
}
198+
199+
ha-card {
200+
height: 100%;
201+
width: 100%;
202+
vertical-align: middle;
203+
justify-content: center;
204+
justify-items: center;
205+
padding-left: 1em;
206+
padding-right: 1em;
207+
box-sizing: border-box;
195208
}
196209
197210
.unavailable {
@@ -221,9 +234,10 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
221234
height: 100%;
222235
}
223236
.content {
224-
margin: 1.5em;
225-
margin-top: -1em;
226-
margin-bottom: 1em;
237+
margin: -0.5em auto;
238+
position: relative;
239+
width: 100%;
240+
box-sizing: border-box;
227241
}
228242
.name {
229243
display: block;
@@ -240,7 +254,7 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
240254
241255
transform: scale(1.5);
242256
-webkit-backface-visibility: hidden;
243-
max-width: 345px;
257+
max-width: 255px;
244258
}
245259
246260
path {
@@ -293,10 +307,13 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
293307
}
294308
295309
#modes {
310+
z-index: 1;
311+
position: relative;
296312
display: flex;
297313
width: auto;
298314
justify-content: center;
299315
margin-top: 1em;
316+
margin-bottom: 1em;
300317
}
301318
302319
#modes > * {
@@ -795,7 +812,7 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
795812
this.hass.locale,
796813
{ minimumFractionDigits: 1, maximumFractionDigits: 1 }
797814
)}`}
798-
<tspan dx="2" dy="-5.5" style="font-size: 5px;">
815+
<tspan dx="-2" dy="-5.5" style="font-size: 5px;">
799816
${svg`
800817
${this.hass.config.unit_system.temperature}
801818
`}
@@ -815,7 +832,7 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
815832
this.hass.locale,
816833
{ minimumFractionDigits: 1, maximumFractionDigits: 1 }
817834
)}`}
818-
<tspan dx="1" dy="-2" style="font-size: 3px;">
835+
<tspan dx="-1" dy="-2" style="font-size: 3px;">
819836
${svg`
820837
${this.hass.config.unit_system.temperature}
821838
`}
@@ -829,7 +846,7 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
829846
this.hass.locale,
830847
{ minimumFractionDigits: 1, maximumFractionDigits: 1 }
831848
)}`}
832-
<tspan dx="1" dy="-2" style="font-size: 3px;">
849+
<tspan dx="-1" dy="-2" style="font-size: 3px;">
833850
${svg`
834851
${this.hass.config.unit_system.temperature}
835852
`}

src/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const CARD_VERSION = '1.0.2';
1+
export const CARD_VERSION = '1.0.3';

0 commit comments

Comments
 (0)