minor fixes and tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-10-09 03:25:53 +03:00
parent 12c5ac8693
commit 2b239c6dc3
3 changed files with 10 additions and 7 deletions

View File

@ -727,6 +727,8 @@ stretching in width... */
text-align: center; text-align: center;
text-overflow: ellipsis; text-overflow: ellipsis;
/*font-size: 2vh;*/ /*font-size: 2vh;*/
pointer-events: none;
} }
.crisp-resize .image { .crisp-resize .image {

View File

@ -1429,8 +1429,10 @@ var ControlActions = actions.Actions({
// us... // us...
// XXX not fully sure if the reason here is // XXX not fully sure if the reason here is
// correct, but the thing works... // correct, but the thing works...
var w = img.attr('preview-width') // NOTE: preview-width/preview-height can be unset
var h = img.attr('preview-height') // for blank image blocks or virtual images...
var w = img.attr('preview-width') || W
var h = img.attr('preview-height') || H
// normalize preview size to image block size... // normalize preview size to image block size...
var s = Math.min(W/w, H/h) var s = Math.min(W/w, H/h)

View File

@ -27,6 +27,7 @@ var VirtualImagesActions = actions.Actions({
// //
// XXX do better arg processing -- handle metadata correctly... // XXX do better arg processing -- handle metadata correctly...
// XXX add export support for this type of stuff... // XXX add export support for this type of stuff...
// text -> file.txt
// XXX add default named templates... // XXX add default named templates...
// XXX add svg templates??? // XXX add svg templates???
makeVirtualBlock: ['- Virtual/', makeVirtualBlock: ['- Virtual/',
@ -92,10 +93,6 @@ var VirtualImagesActions = actions.Actions({
text: text || '', text: text || '',
}) }], }) }],
// XXX virtual block editor UI...
// XXX
// XXX export... // XXX export...
}) })
@ -119,11 +116,13 @@ module.VirtualImages = core.ImageGridFeatures.Feature({
//--------------------------------------------------------------------- //---------------------------------------------------------------------
var VirtualImagesUIActions = actions.Actions({ var VirtualImagesUIActions = actions.Actions({
// XXX virtual block editor UI...
// XXX // XXX
}) })
var VirtualImagesUI = var VirtualImagesUI =