From d85935046e6c2d008f6759112b9f8df35e2a4efe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 27 Jan 2014 12:33:45 +0100 Subject: [PATCH] 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. --- src/editor/modules/documentCanvas/canvas/wlxmlManagers.js | 3 +++ src/editor/modules/documentCanvas/nodes.less | 4 ++++ 2 files changed, 7 insertions(+) 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 -- 2.20.1