Fix thermostat humidifier card size (#18749)

This commit is contained in:
Paul Bottein 2023-11-24 16:27:01 +01:00 committed by GitHub
parent 260f1df1b9
commit eaf7e29b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 12 deletions

View File

@ -154,11 +154,6 @@ export class HuiHumidifierCard extends LitElement implements LovelaceCard {
static get styles(): CSSResultGroup {
return css`
:host {
display: block;
height: 100%;
}
ha-card {
height: 100%;
position: relative;
@ -167,7 +162,7 @@ export class HuiHumidifierCard extends LitElement implements LovelaceCard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-between;
}
.title {

View File

@ -146,11 +146,6 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
static get styles(): CSSResultGroup {
return css`
:host {
display: block;
height: 100%;
}
ha-card {
height: 100%;
position: relative;
@ -159,7 +154,7 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-between;
}
.title {

View File

@ -99,6 +99,12 @@ export const stateControlCircularSliderStyle = css`
}
}
@container container (max-width: 130px) {
.label {
display: none;
}
}
/* Slider */
ha-control-circular-slider {
width: 100%;