1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-03-25 07:01:11 +00:00
Alexis Mercier des Rochettes 93aed87265 bootstrap: fix minor issues with profile picture cropping
* Add required [1] "display: block;" style property to img element
* Fix image overflow in modal. As cropper size inherits from img's parent element [2] (including padding according to my research), we need to wrap modal body into another div that has the padding we want.
* Remove ability [3] to click away to dismiss the modal as it often interfered with user interaction when cropping.

[1] https://github.com/fengyuanchen/cropperjs/tree/v1?tab=readme-ov-file#example
[2] https://github.com/fengyuanchen/cropperjs/tree/v1?tab=readme-ov-file#notes
[3] https://getbootstrap.com/docs/4.0/components/modal/#options

Signed-off-by: Alexis Mercier des Rochettes <apernouille@gmail.com>
2025-03-24 17:36:30 +01:00
..
2025-03-09 18:14:58 +01:00
2025-03-09 18:14:58 +01:00
2025-03-09 18:14:58 +01:00
2025-03-09 18:14:58 +01:00
2025-03-17 13:15:07 +01:00
2025-03-09 18:14:58 +01:00
2024-07-30 16:28:47 +02:00
2025-03-09 18:14:58 +01:00
2025-03-09 18:14:58 +01:00