]> BookStack Code Mirror - bookstack/commit
Fixes a number of issues with the image uploader. Read below,
authorAbijeet <redacted>
Sun, 18 Mar 2018 13:14:11 +0000 (18:44 +0530)
committerAbijeet <redacted>
Sun, 18 Mar 2018 13:14:11 +0000 (18:44 +0530)
commitd859be3a128cf3a624f70cd082d3ed09124769a3
tree12cd94aeda69c94dedef8b4ecc4234030da46f96
parentf42d355fd74fc32ea62fd85e17de304e146ca9c3
Fixes a number of issues with the image uploader. Read below,

- Added a remove link to remove files that have an error.
- Error will appear below the progress bar.
- Hovering on dz-image or dz-details will display the error message. Otherwise error message was covering the remove link as well.
- Removed styling around the file size.
- Removed gradient effect in accordance with BookStack styling.
- Dropzone filenae will not overflow the container element. Also done for page attachments
- Added a 'uploaded' error message. this error was being thrown when the file size exceeded the server configured file size. (https://stackoverflow.com/a/42934387/903324)

Towards #741

Signed-off-by: Abijeet <redacted>
resources/assets/js/vues/components/dropzone.js
resources/assets/sass/_components.scss
resources/assets/sass/_pages.scss
resources/lang/en/components.php
resources/lang/en/errors.php
resources/lang/en/validation.php