1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-04-22 14:52:16 +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
..
2020-09-01 14:33:38 +02:00
2020-08-31 20:15:48 +02:00
2020-09-01 10:13:05 +02:00
2020-08-25 16:30:02 +02:00
2020-08-31 20:15:48 +02:00
2023-09-01 17:15:24 +02:00
2020-09-01 10:13:05 +02:00