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-overflow: ellipsis;
/*font-size: 2vh;*/
pointer-events: none;
}
.crisp-resize .image {

View File

@ -1429,8 +1429,10 @@ var ControlActions = actions.Actions({
// us...
// XXX not fully sure if the reason here is
// correct, but the thing works...
var w = img.attr('preview-width')
var h = img.attr('preview-height')
// NOTE: preview-width/preview-height can be unset
// 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...
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 add export support for this type of stuff...
// text -> file.txt
// XXX add default named templates...
// XXX add svg templates???
makeVirtualBlock: ['- Virtual/',
@ -92,10 +93,6 @@ var VirtualImagesActions = actions.Actions({
text: text || '',
}) }],
// XXX virtual block editor UI...
// XXX
// XXX export...
})
@ -119,11 +116,13 @@ module.VirtualImages = core.ImageGridFeatures.Feature({
//---------------------------------------------------------------------
var VirtualImagesUIActions = actions.Actions({
// XXX virtual block editor UI...
// XXX
})
var VirtualImagesUI =