From 4ef1e4068fa399f6754b650a647cd78fb7d41eec Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 24 Aug 2021 22:02:45 +0300 Subject: [PATCH] [common] refactoring --- apps/common/main/lib/component/TableStyler.js | 18 ++++---- .../main/resources/less/table-styler.less | 44 +++++++++++++++++++ 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/apps/common/main/lib/component/TableStyler.js b/apps/common/main/lib/component/TableStyler.js index 68e5fb58a..018873d69 100644 --- a/apps/common/main/lib/component/TableStyler.js +++ b/apps/common/main/lib/component/TableStyler.js @@ -370,8 +370,8 @@ define([ template: _.template([ '
', - '
', - '
', + '
', + '
', '
', '', '', @@ -383,9 +383,9 @@ define([ '
', '
', '
', - '
', + '
', - '
', + '
', '
', '', '', @@ -395,7 +395,7 @@ define([ '
', '
', '
', - '
', + '
', '', '<% for (var row = 0; row < scope.rows; row++) { %>', '', @@ -406,7 +406,7 @@ define([ '<% } %>', '
', '
', - '
', + '
', '
', '', '', @@ -417,8 +417,8 @@ define([ '', '', - '
', - '
', + '
', + '
', '
', '
', '', @@ -430,7 +430,7 @@ define([ '
', '
', '
', - '
', + '
', '
' ].join('')), diff --git a/apps/common/main/resources/less/table-styler.less b/apps/common/main/resources/less/table-styler.less index 304cf4f76..09acc1158 100644 --- a/apps/common/main/resources/less/table-styler.less +++ b/apps/common/main/resources/less/table-styler.less @@ -37,4 +37,48 @@ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAIAQMAAADk/cxGAAAABlBMVEVMaXHAwMBbbSKjAAAAAXRSTlMAQObYZgAAAA5JREFUeNpj+MAAgVAAAC0QA8HkpvUHAAAAAElFTkSuQmCC'); } } + + .ts-preview-box { + position: absolute; + + &.ts-preview-box--lt { + border-bottom: 1px dotted gray; + border-bottom: @scaled-one-px-value dotted gray; + border-right: 1px dotted gray; + border-right: @scaled-one-px-value dotted gray; + } + + &.ts-preview-box--mt { + } + + &.ts-preview-box--rt { + border-bottom: 1px dotted gray; + border-bottom: @scaled-one-px-value dotted gray; + border-left: 1px dotted gray; + border-left: @scaled-one-px-value dotted gray; + } + + &.ts-preview-box--rm { + } + + &.ts-preview-box--lb { + border-top: 1px dotted gray; + border-top: @scaled-one-px-value dotted gray; + border-right: 1px dotted gray; + border-right: @scaled-one-px-value dotted gray; + } + + &.ts-preview-box--lm { + } + + &.ts-preview-box--rb { + border-top: 1px dotted gray; + border-top: @scaled-one-px-value dotted gray; + border-left: 1px dotted gray; + border-left: @scaled-one-px-value dotted gray; + } + + &.ts-preview-box--mb { + } + } } \ No newline at end of file