Files
Folo/apps/desktop
Innei b72ab7dffd fix(avatar-upload): cropping functionality keep aspect
- Added a helper function `constrainCropData` to ensure crop dimensions remain within image boundaries and maintain a 1:1 aspect ratio.
- Updated image loading and cropping logic to utilize the new helper function for better validation of crop data.
- Improved mouse event handling for cropping to ensure accurate resizing and positioning of the crop area.
- Adjusted crop style calculations to account for the actual display size of the image within its container.

These changes aim to provide a more robust and user-friendly experience when uploading and cropping avatars.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-18 13:47:56 +08:00
..
2025-03-21 17:28:12 +08:00
2025-04-04 23:57:55 +08:00
2025-03-30 22:13:11 +08:00
2025-05-24 19:03:16 +08:00
2025-06-05 20:46:38 +08:00
2025-03-02 17:19:22 +08:00