From 2b239c6dc32fa1bcfe3ceb6366845927ef9b3827 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 9 Oct 2019 03:25:53 +0300 Subject: [PATCH] minor fixes and tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/layout.less | 2 ++ ui (gen4)/features/ui.js | 6 ++++-- ui (gen4)/features/virtual-images.js | 9 ++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ui (gen4)/css/layout.less b/ui (gen4)/css/layout.less index c17774ac..7533b88d 100755 --- a/ui (gen4)/css/layout.less +++ b/ui (gen4)/css/layout.less @@ -727,6 +727,8 @@ stretching in width... */ text-align: center; text-overflow: ellipsis; /*font-size: 2vh;*/ + + pointer-events: none; } .crisp-resize .image { diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 451430ad..7b9ee7c6 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -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) diff --git a/ui (gen4)/features/virtual-images.js b/ui (gen4)/features/virtual-images.js index 9c98191f..15c52abe 100644 --- a/ui (gen4)/features/virtual-images.js +++ b/ui (gen4)/features/virtual-images.js @@ -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 =