scale avatar and user title with container width
This commit is contained in:
parent
b05ebeaed5
commit
4ffd8499a7
2 changed files with 10 additions and 1 deletions
|
|
@ -149,6 +149,7 @@
|
|||
display: flex;
|
||||
align-items: flex-end;
|
||||
margin-bottom: 1em;
|
||||
container: user-card / inline-size;
|
||||
|
||||
> * {
|
||||
min-width: 0;
|
||||
|
|
@ -165,7 +166,9 @@
|
|||
--_avatarShadowInset: var(--avatarShadowInset);
|
||||
|
||||
width: 7em;
|
||||
width: calc(min(7em, 20cqw));
|
||||
height: 7em;
|
||||
height: calc(min(7em, 20cqw));
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
|
@ -267,10 +270,14 @@
|
|||
--link: var(--text) !important;
|
||||
}
|
||||
|
||||
.top-line, {
|
||||
.top-line {
|
||||
display: flex;
|
||||
// these two normalize position and height when custom emoji are used
|
||||
line-height: 2;
|
||||
margin-bottom: -0.2em;
|
||||
font-weight: 600;
|
||||
font-size: 110%;
|
||||
font-size: calc(max(110%, 4cqw));
|
||||
}
|
||||
|
||||
.bottom-line {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,9 @@
|
|||
|
||||
.Avatar {
|
||||
width: 5em;
|
||||
width: calc(min(5em, 20cqw));
|
||||
height: 5em;
|
||||
height: calc(min(5em, 20cqw));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue