mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix for RTL languages - Profile panel + weather forecast card (#18191)
This commit is contained in:
parent
6bdeb45f6b
commit
6686da1f24
@ -512,6 +512,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
|||||||
.temp-attribute .temp {
|
.temp-attribute .temp {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 24px;
|
margin-right: 24px;
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.temp-attribute .temp span {
|
.temp-attribute .temp span {
|
||||||
@ -547,6 +548,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
.attribute {
|
.attribute {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.forecast {
|
.forecast {
|
||||||
@ -606,6 +608,11 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============= RTL ============= */
|
||||||
|
:host([rtl]) .temp-attribute {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============= NARROW ============= */
|
/* ============= NARROW ============= */
|
||||||
|
|
||||||
:host([narrow]) .icon-image {
|
:host([narrow]) .icon-image {
|
||||||
|
@ -250,6 +250,7 @@ class HaPanelProfile extends LitElement {
|
|||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content > * {
|
.content > * {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user