From 8863e9275ff5381c11cd87e06f138c6e1bdff552 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Wed, 20 Nov 2024 08:12:55 +0000 Subject: [PATCH] code optimization --- options/locale/locale_en-US.ini | 1 + templates/user/settings/profile.tmpl | 15 ++++++---- web_src/css/features/cropper.css | 36 ++++++++++++---------- web_src/js/features/comp/Cropper.ts | 45 ++++++++++++++++------------ 4 files changed, 57 insertions(+), 40 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 122b70924a..92bbb549e2 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -763,6 +763,7 @@ uploaded_avatar_not_a_image = The uploaded file is not an image. uploaded_avatar_is_too_big = The uploaded file size (%d KiB) exceeds the maximum size (%d KiB). update_avatar_success = Your avatar has been updated. update_user_avatar_success = The user's avatar has been updated. +cropper_prompt = Note: The saved image format after cropping is unified as JPEG. change_password = Update Password old_password = Current Password diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index f6b7a9cd13..a29128ee4f 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -127,17 +127,20 @@ -