From: Aleksander Ɓukasz Date: Mon, 27 Jan 2014 11:33:45 +0000 (+0100) Subject: editor: inline style for aside.gap X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/d85935046e6c2d008f6759112b9f8df35e2a4efe?ds=sidebyside editor: inline style for aside.gap This is awful. Should be considered as as temporary workaround until the whole wlxmlManagers & styles mix will be refactored into something more sane. --- diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js index 1078218..a35c079 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js @@ -55,6 +55,9 @@ var getDisplayStyle = function(tag, klass) { if(klass && klass.substr(0, 4) === 'item') { return null; } + if(klass === 'gap') { + return 'inline'; + } return 'block'; }; diff --git a/src/editor/modules/documentCanvas/nodes.less b/src/editor/modules/documentCanvas/nodes.less index 7bae063..367e4aa 100644 --- a/src/editor/modules/documentCanvas/nodes.less +++ b/src/editor/modules/documentCanvas/nodes.less @@ -141,4 +141,8 @@ [wlxml-tag="aside"] { margin-top: 10px; margin-bottom: 10px; + + [wlxml-class='gap'] { + display: inline; + } } \ No newline at end of file