From f27099a4b354c3f2867523a8bfdc3e130b2989b4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Aug 2025 15:20:33 +0300 Subject: [PATCH 1/8] fix small screens avatar upload --- src/components/dialog_modal/dialog_modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dialog_modal/dialog_modal.vue b/src/components/dialog_modal/dialog_modal.vue index 939655f65..2b9c7a5d8 100644 --- a/src/components/dialog_modal/dialog_modal.vue +++ b/src/components/dialog_modal/dialog_modal.vue @@ -45,10 +45,10 @@ inset: 0; justify-content: center; place-items: center center; + overflow: auto; } .dialog-modal.panel { - max-height: 80vh; max-width: 90vw; z-index: 2001; cursor: default; From 7fd46f2d6c1eaf2631682e138f20d73bf1b88cf7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Aug 2025 15:22:03 +0300 Subject: [PATCH 2/8] Revert "fix visibility-notice" This reverts commit 202bfbad02b28fee9622f6b0b36bbed852785908. --- .../post_status_form/post_status_form.vue | 28 +++++++++---------- src/components/user_card/user_card.js | 3 ++ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 26a2e2db0..303413b55 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -13,7 +13,7 @@ v-if="!$store.state.users.currentUser.locked && newStatus.visibility == 'private' && !disableLockWarning" keypath="post_status.account_not_locked_warning" tag="p" - class="alert neutral" + class="visibility-notice" scope="global" > +

{{ $t('post_status.scope_notice.unlisted') }} - +

{{ $t('post_status.scope_notice.private') }} - +

{{ $t('post_status.direct_warning_to_first_only') }} {{ $t('post_status.direct_warning_to_all') }} diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 159d09e36..8a99c4ceb 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -438,6 +438,9 @@ export default { propsToNative (props) { return propsToNative(props) }, + cancelImageText () { + return + }, resetState () { const user = this.$store.state.users.currentUser From f2783260f11b941fdb860661b3c160b9e08bb427 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Aug 2025 15:40:25 +0300 Subject: [PATCH 3/8] considerably improve styling of upload modal on mobile --- src/components/user_card/user_card.scss | 27 ++++++++++++++++++++++++- src/components/user_card/user_card.vue | 14 +++++++------ 2 files changed, 34 insertions(+), 7 deletions(-) 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 @@ >