Fix for RTL languages - Profile panel + weather forecast card (#18191)

This commit is contained in:
tzagim 2023-10-12 15:27:01 +03:00 committed by GitHub
parent 6bdeb45f6b
commit 6686da1f24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -512,6 +512,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
.temp-attribute .temp {
position: relative;
margin-right: 24px;
direction: ltr;
}
.temp-attribute .temp span {
@ -547,6 +548,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
.attribute {
white-space: nowrap;
direction: ltr;
}
.forecast {
@ -606,6 +608,11 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
text-align: center;
}
/* ============= RTL ============= */
:host([rtl]) .temp-attribute {
text-align: left;
}
/* ============= NARROW ============= */
:host([narrow]) .icon-image {

View File

@ -250,6 +250,7 @@ class HaPanelProfile extends LitElement {
max-width: 600px;
margin: 0 auto;
padding-bottom: env(safe-area-inset-bottom);
overflow: hidden;
}
.content > * {