Skip to content
Snippets Groups Projects
Commit 93aed872 authored by alexismdr's avatar alexismdr Committed by Alexis Mercier des Rochettes
Browse files

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: default avatarAlexis Mercier des Rochettes <apernouille@gmail.com>
parent 56a43396
No related branches found
No related tags found
Loading
Pipeline #14870 passed with stages
in 20 minutes and 18 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment