diff --git a/src/components/user_card/user_card.scss b/src/components/user_card/user_card.scss index ce26fdfe7..df5ef53fd 100644 --- a/src/components/user_card/user_card.scss +++ b/src/components/user_card/user_card.scss @@ -491,6 +491,8 @@ .edit-image { .panel-body { text-align: center; + display: flex; + flex-direction: column; } .current-avatar { @@ -499,9 +501,19 @@ .image-container { display: flex; - margin: 0 1em 0.5em; + align-self: center; + margin: 0 0 1em; + max-height: 30em; + max-width: 100%; + flex: 1 0 20em; + aspect-ratio: 1; gap: 0.5em; + &.-banner { + aspect-ratio: 3; + max-width: 100%; + } + .new-image { display: flex; flex-direction: column; @@ -509,6 +521,7 @@ .cropper { flex: 1; + overflow-x: auto; } > * { @@ -546,4 +559,16 @@ aspect-ratio: unset; } } + + #modal.-mobile & { + #pick-image { + height: 3em; + } + + .image-container { + &.-banner { + max-height: 10em; + } + } + } } diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index a993a87a5..f89a1b6f1 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -455,8 +455,7 @@ >