mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
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:
committed by
Jeffrey Warren
parent
ceca433806
commit
95f8dad901
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user