Reduce size of avatars in reduced-width view

This commit is contained in:
Liam 2025-02-21 18:33:57 -05:00
parent b66826c246
commit e6debbe749
3 changed files with 15 additions and 1 deletions

View file

@ -41,4 +41,5 @@ $image-large-size: 512px;
--block-header-sub-height: 26px; --block-header-sub-height: 26px;
--block-spacing: 6px; --block-spacing: 6px;
--media-box-header-height: 22px; --media-box-header-height: 22px;
--reduced-communication-avatar-size: 75px;
} }

View file

@ -126,7 +126,7 @@ span.communication__sender__stats,
} }
.communication__body__sender { .communication__body__sender {
width: calc(100vw - 12px - 125px); width: calc(100vw - 12px - var(--reduced-communication-avatar-size));
grid-area: 1 / 2 / 2 / 3; grid-area: 1 / 2 / 2 / 3;
} }

View file

@ -130,3 +130,16 @@ td.table--stats__sparkline {
width: 125px; width: 125px;
height: 125px; height: 125px;
} }
/* Mobile layout fixes */
@media (max-width: $min-desktop-width) {
.avatar--100px {
width: var(--reduced-communication-avatar-size);
height: var(--reduced-communication-avatar-size);
}
.avatar--125px {
width: var(--reduced-communication-avatar-size);
height: var(--reduced-communication-avatar-size);
}
}