From c60cc871c021a18e6449ba6e588a6b0fdb7b21c9 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 27 Dec 2020 16:27:38 +0300 Subject: [PATCH 1/3] [DE] fix open palette console error --- .../lib/component/ThemeColorPalette.jsx | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/common/mobile/lib/component/ThemeColorPalette.jsx b/apps/common/mobile/lib/component/ThemeColorPalette.jsx index 7ae2efa6d..de6312f40 100644 --- a/apps/common/mobile/lib/component/ThemeColorPalette.jsx +++ b/apps/common/mobile/lib/component/ThemeColorPalette.jsx @@ -8,13 +8,13 @@ const ThemeColors = ({ themeColors, onColorClick, curColor }) => {
{themeColors.map((row, rowIndex) => { return( -
+
{row.map((effect, index) => { return( - {onColorClick(effect.color, effect.effectId)}} > ) @@ -31,16 +31,16 @@ const StandartColors = ({ options, standartColors, onColorClick, curColor }) =>
{standartColors.map((color, index) => { return( - index === 0 && options.transparent ? - {onColorClick('transparent')}} - > : - {onColorClick(color)}} - > + index === 0 && options.transparent ? + {onColorClick('transparent')}} + > : + {onColorClick(color)}} + > ) })}
@@ -52,9 +52,9 @@ const DynamicColors = ({ options, onColorClick, curColor }) => { const emptyItems = []; if (dynamicColors.length < options.dynamiccolors) { for (let i = dynamicColors.length; i < options.dynamiccolors; i++) { - emptyItems.push( {onColorClick('empty')}} + emptyItems.push( {onColorClick('empty')}} >) } } @@ -62,7 +62,7 @@ const DynamicColors = ({ options, onColorClick, curColor }) => {
{dynamicColors && dynamicColors.length > 0 && dynamicColors.map((color, index) => { return( - {onColorClick(color)}} From e9abada366bafebb1a6faed14feff2f024d2caa5 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 27 Dec 2020 16:28:16 +0300 Subject: [PATCH 2/3] [DE] remove unused elements --- apps/documenteditor/mobile/src/css/app.less | 32 ---------------- apps/documenteditor/mobile/src/view/app.jsx | 42 --------------------- 2 files changed, 74 deletions(-) diff --git a/apps/documenteditor/mobile/src/css/app.less b/apps/documenteditor/mobile/src/css/app.less index 6e73cb840..39a4c6a80 100644 --- a/apps/documenteditor/mobile/src/css/app.less +++ b/apps/documenteditor/mobile/src/css/app.less @@ -10,38 +10,6 @@ @import './icons-ios.less'; @import './icons-material.less'; -/* Left Panel right border when it is visible by breakpoint */ -.panel-left.panel-in-breakpoint:before { - position: absolute; - right: 0; - top: 0; - height: 100%; - width: 1px; - background: rgba(0,0,0,0.1); - content: ''; - z-index: 6000; -} - -/* Hide navbar link which opens left panel when it is visible by breakpoint */ -.panel-left.panel-in-breakpoint ~ .view .navbar .panel-open[data-panel="left"] { - display: none; -} - -/* - Extra borders for main view and left panel for iOS theme when it behaves as panel (before breakpoint size) -*/ -.ios .panel-left:not(.panel-in-breakpoint).panel-in ~ .view-main:before, -.ios .panel-left:not(.panel-in-breakpoint).panel-closing ~ .view-main:before { - position: absolute; - left: 0; - top: 0; - height: 100%; - width: 1px; - background: rgba(0,0,0,0.1); - content: ''; - z-index: 6000; -} - :root { --f7-popover-width: 360px; } diff --git a/apps/documenteditor/mobile/src/view/app.jsx b/apps/documenteditor/mobile/src/view/app.jsx index 64a7a3ab9..da82af4b7 100644 --- a/apps/documenteditor/mobile/src/view/app.jsx +++ b/apps/documenteditor/mobile/src/view/app.jsx @@ -31,51 +31,9 @@ export default class extends React.Component { return ( - {/* Left panel with cover effect when hidden */} - - - - - Left View Navigation - - - - - - - - - - {/* Right panel with reveal effect*/} - - - - - Right panel content goes here - - - - - {/* Your main view, should have "view-main" class */} - - {/* Popup */} - - - - - - Close - - - -

Popup content goes here.

-
-
-
-
) } From 58bc75cef36880b7d42ce9a106b4968ba818db68 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 27 Dec 2020 16:31:40 +0300 Subject: [PATCH 3/3] [stylesheets] refactoring --- apps/common/mobile/resources/less/common.less | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/common/mobile/resources/less/common.less b/apps/common/mobile/resources/less/common.less index 0409ea53b..52a180058 100644 --- a/apps/common/mobile/resources/less/common.less +++ b/apps/common/mobile/resources/less/common.less @@ -3,7 +3,7 @@ @black: #000000; @gray: #c4c4c4; @green: #4cd964; - +@background-normal: @white; .popup, .popover, .sheet-modal { .list:first-child { @@ -53,7 +53,7 @@ } &.active { .color-auto { - box-shadow: 0 0 0 1px #fff, 0 0 0 4px @themeColor; + box-shadow: 0 0 0 1px @background-normal, 0 0 0 4px @themeColor; border-radius: 1px; } } @@ -74,7 +74,7 @@ position: absolute; width: 100%; height: 100%; - box-shadow: 0 0 0 1px #fff, 0 0 0 4px @themeColor; + box-shadow: 0 0 0 1px @background-normal, 0 0 0 4px @themeColor; z-index: 1; border-radius: 1px; } @@ -91,4 +91,10 @@ display: flex; } } + + .dynamic-colors { + .empty-color { + background-color: @background-normal; + } + } }