Sidebar profile picture fix alignment in RTL languages (#27578)

* Fix floor entities count

* Fix rtl profile picture
This commit is contained in:
Wendelin 2025-10-23 14:09:15 +02:00 committed by GitHub
parent 699c25a6c3
commit 3a2c00622a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View File

@ -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 {

View File

@ -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);