fixed account avatar vertical centering

This commit is contained in:
Leslie Xiong
2026-01-30 15:20:36 -05:00
parent 7f2df803f6
commit 0f496e019d
2 changed files with 5 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
<ng-container *ngIf="view$ | async as view">
<button
class="account-switcher"
type="button"
(click)="toggle()"
cdkOverlayOrigin

View File

@@ -100,42 +100,12 @@
}
.account-switcher {
display: grid;
grid-template-columns: auto 1fr auto;
display: flex;
align-items: center;
justify-items: center;
padding: 0 10px;
height: 100%;
user-select: none;
border: none;
background: transparent;
width: auto;
@include themify($themes) {
color: themed("accountSwitcherTextColor");
}
img {
display: block;
}
.active-account {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
div {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
span {
font-size: $font-size-small;
}
span {
display: flex;
align-items: center;
}
}