fix banner overflowing

This commit is contained in:
Henry Jameson 2025-08-05 14:10:07 +03:00
commit a4e6a72ca2
4 changed files with 15 additions and 5 deletions

View file

@ -1,6 +1,7 @@
.user-card { .user-card {
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: hidden;
// editing headers // editing headers
h4 { h4 {
@ -161,9 +162,10 @@
.user-info { .user-info {
position: relative; position: relative;
margin: 0.6em;
margin-bottom: 0;
text-align: left; text-align: left;
display: flex;
flex-direction: column;
gap: 1em;
.user-identity { .user-identity {
position: relative; position: relative;
@ -171,7 +173,6 @@
min-height: 6em; min-height: 6em;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
margin-bottom: 1em;
container: user-card / inline-size; container: user-card / inline-size;
> * { > * {

View file

@ -29,6 +29,8 @@
} }
.user-info { .user-info {
margin: 0.6em;
.Avatar { .Avatar {
width: 5em; width: 5em;
width: calc(min(5em, 20cqw)); width: calc(min(5em, 20cqw));

View file

@ -27,7 +27,11 @@
/* popover styles load on-demand, so we need to override */ /* popover styles load on-demand, so we need to override */
/* stylelint-disable block-no-empty */ /* stylelint-disable block-no-empty */
.user-popover { .user-popover {
margin-bottom: 0.6em; margin: 0;
.user-info {
margin: 1.2em;
}
.user-identity { .user-identity {
aspect-ratio: unset; aspect-ratio: unset;
@ -40,7 +44,6 @@
&.popover { &.popover {
overflow: hidden; overflow: hidden;
padding: 0.6em;
} }
} }
/* stylelint-enable block-no-empty */ /* stylelint-enable block-no-empty */

View file

@ -140,6 +140,10 @@
align-items: center; align-items: center;
padding: 2em; padding: 2em;
} }
.user-info {
margin: 0.6em;
}
} }
.user-profile-placeholder { .user-profile-placeholder {