mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-04 01:10:33 -06:00
Sidebar profile picture fix alignment in RTL languages (#27578)
* Fix floor entities count * Fix rtl profile picture
This commit is contained in:
parent
699c25a6c3
commit
3a2c00622a
@ -876,13 +876,20 @@ class HaSidebar extends SubscribeMixin(LitElement) {
|
||||
}
|
||||
|
||||
ha-md-list-item.user {
|
||||
--md-list-item-leading-icon-size: 40px;
|
||||
--md-list-item-leading-space: 4px;
|
||||
--md-list-item-leading-space: 0;
|
||||
--md-list-item-trailing-space: 0;
|
||||
}
|
||||
|
||||
ha-user-badge {
|
||||
flex-shrink: 0;
|
||||
margin-right: -8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
ha-user-badge::part(picture) {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
|
||||
@ -54,6 +54,7 @@ class UserBadge extends LitElement {
|
||||
backgroundImage: `url(${this.hass.hassUrl(picture)})`,
|
||||
})}
|
||||
class="picture"
|
||||
part="picture"
|
||||
></div>`;
|
||||
}
|
||||
const initials = computeUserInitials(this.user.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user