Add grid of thumbnails (#539)

* Added four preview images

* Added preview images to buttons

* Maked the crop preview resposive

* icon overlays

* made previews square

* finalized css for square images

* Added four preview images

* Added preview images to buttons

* Maked the crop preview resposive

* icon overlays

* made previews square

* finalized css for square images
This commit is contained in:
Jonathan Xu
2018-12-09 22:35:32 -05:00
committed by Jeffrey Warren
parent ceca433806
commit 95f8dad901
8 changed files with 4048 additions and 3963 deletions

View File

@@ -17,7 +17,7 @@ module.exports = function CropModule(options, UI) {
// we should get UI to return the image thumbnail so we can attach our own UI extensions
// add our custom in-module html ui:
if (options.step.inBrowser) var ui = require('./Ui.js')(options.step, UI);
if (options.step.inBrowser && !options.noUI) var ui = require('./Ui.js')(options.step, UI);
var output,
setupComplete = false;
@@ -49,7 +49,7 @@ module.exports = function CropModule(options, UI) {
// start custom UI setup (draggable UI)
// only once we have an input image
if (setupComplete === false && options.step.inBrowser) {
if (setupComplete === false && options.step.inBrowser && !options.noUI) {
setupComplete = true;
ui.setup();
}