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 {
|
||||
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 {
|
||||
|
@ -250,6 +250,7 @@ class HaPanelProfile extends LitElement {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.content > * {
|
||||
|
Loading…
x
Reference in New Issue
Block a user