From 10e10ca77b09eeb260ddc3309eac9a957de6027e Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 18 Jun 2021 16:06:53 +0300 Subject: [PATCH] [DE PE SSE mobile] Fix Bug 50897 --- apps/documenteditor/mobile/src/view/edit/Edit.jsx | 2 +- apps/documenteditor/mobile/src/view/edit/EditChart.jsx | 2 ++ apps/documenteditor/mobile/src/view/edit/EditShape.jsx | 8 +++++--- apps/documenteditor/mobile/src/view/edit/EditTable.jsx | 8 +++++--- apps/presentationeditor/mobile/src/view/edit/Edit.jsx | 2 +- .../presentationeditor/mobile/src/view/edit/EditChart.jsx | 2 ++ .../presentationeditor/mobile/src/view/edit/EditShape.jsx | 2 ++ .../presentationeditor/mobile/src/view/edit/EditTable.jsx | 8 +++++--- apps/spreadsheeteditor/mobile/src/view/edit/Edit.jsx | 2 +- apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx | 2 ++ apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx | 2 ++ 11 files changed, 28 insertions(+), 12 deletions(-) diff --git a/apps/documenteditor/mobile/src/view/edit/Edit.jsx b/apps/documenteditor/mobile/src/view/edit/Edit.jsx index bd9bb4c7a..42001e455 100644 --- a/apps/documenteditor/mobile/src/view/edit/Edit.jsx +++ b/apps/documenteditor/mobile/src/view/edit/Edit.jsx @@ -202,7 +202,7 @@ const EditLayoutNavbar = ({ editors, inPopover }) => { editors.length > 1 ?
{editors.map((item, index) => {item.caption})} - {isAndroid && } + {isAndroid && }
: { editors[0].caption } } diff --git a/apps/documenteditor/mobile/src/view/edit/EditChart.jsx b/apps/documenteditor/mobile/src/view/edit/EditChart.jsx index a539c9339..6d0981d07 100644 --- a/apps/documenteditor/mobile/src/view/edit/EditChart.jsx +++ b/apps/documenteditor/mobile/src/view/edit/EditChart.jsx @@ -147,6 +147,7 @@ const PageStyle = props => { const types = storeChartSettings.types; const curType = chartProperties ? chartProperties.getType() : null; const chartStyles = storeChartSettings.chartStyles; + const isAndroid = Device.android; // console.log(chartStyles, curType); // console.log(Asc.c_oAscChartTypeSettings.comboBarLine, Asc.c_oAscChartTypeSettings.comboBarLineSecondary, Asc.c_oAscChartTypeSettings.comboAreaBar, Asc.c_oAscChartTypeSettings.comboCustom); @@ -184,6 +185,7 @@ const PageStyle = props => { {chartStyles ? {_t.textStyle} : null} {_t.textFill} {_t.textBorder} + {isAndroid && } {Device.phone && diff --git a/apps/documenteditor/mobile/src/view/edit/EditShape.jsx b/apps/documenteditor/mobile/src/view/edit/EditShape.jsx index 227dc6f1f..b4c785b50 100644 --- a/apps/documenteditor/mobile/src/view/edit/EditShape.jsx +++ b/apps/documenteditor/mobile/src/view/edit/EditShape.jsx @@ -144,6 +144,7 @@ const PageStyle = props => { const _t = t('Edit', {returnObjects: true}); const storeShapeSettings = props.storeShapeSettings; const shapeObject = props.storeFocusObjects.shapeObject; + const isAndroid = Device.android; let borderSize, borderType, transparent; if (shapeObject) { @@ -177,9 +178,10 @@ const PageStyle = props => {
- {_t.textFill} - {_t.textBorder} - {_t.textEffects} + {_t.textFill} + {_t.textBorder} + {_t.textEffects} + {isAndroid && }
{Device.phone && diff --git a/apps/documenteditor/mobile/src/view/edit/EditTable.jsx b/apps/documenteditor/mobile/src/view/edit/EditTable.jsx index 528c3bf23..d17639b5b 100644 --- a/apps/documenteditor/mobile/src/view/edit/EditTable.jsx +++ b/apps/documenteditor/mobile/src/view/edit/EditTable.jsx @@ -466,6 +466,7 @@ const PageStyle = props => { const _t = t('Edit', {returnObjects: true}); const storeTableSettings = props.storeTableSettings; const templates = storeTableSettings.styles; + const isAndroid = Device.android; const tableObject = props.storeFocusObjects.tableObject; if (!tableObject && Device.phone) { @@ -477,9 +478,10 @@ const PageStyle = props => {
- {_t.textStyle} - {_t.textFill} - {_t.textBorder} + {_t.textStyle} + {_t.textFill} + {_t.textBorder} + {isAndroid && }
{Device.phone && diff --git a/apps/presentationeditor/mobile/src/view/edit/Edit.jsx b/apps/presentationeditor/mobile/src/view/edit/Edit.jsx index 3f9537494..f4d43fb8a 100644 --- a/apps/presentationeditor/mobile/src/view/edit/Edit.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/Edit.jsx @@ -231,7 +231,7 @@ const EditLayoutNavbar = ({ editors, inPopover }) => { editors.length > 1 ?
{editors.map((item, index) => {item.caption})} - {isAndroid && } + {isAndroid && }
: { editors[0].caption } } diff --git a/apps/presentationeditor/mobile/src/view/edit/EditChart.jsx b/apps/presentationeditor/mobile/src/view/edit/EditChart.jsx index 2112aa589..a9929cc34 100644 --- a/apps/presentationeditor/mobile/src/view/edit/EditChart.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/EditChart.jsx @@ -159,6 +159,7 @@ const PageStyle = props => { const styles = storeChartSettings.styles; const shapeObject = props.storeFocusObjects.shapeObject; const chartStyles = storeChartSettings.chartStyles; + const isAndroid = Device.android; let borderSize, borderType, borderColor; @@ -194,6 +195,7 @@ const PageStyle = props => { {chartStyles ? {_t.textStyle} : null} {_t.textFill} {_t.textBorder} + {isAndroid && } {Device.phone && diff --git a/apps/presentationeditor/mobile/src/view/edit/EditShape.jsx b/apps/presentationeditor/mobile/src/view/edit/EditShape.jsx index 71210945c..39a55a8b4 100644 --- a/apps/presentationeditor/mobile/src/view/edit/EditShape.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/EditShape.jsx @@ -89,6 +89,7 @@ const PageStyle = props => { const storeFocusObjects = props.storeFocusObjects; const storeShapeSettings = props.storeShapeSettings; const shapeObject = storeFocusObjects.shapeObject; + const isAndroid = Device.android; let borderSize, borderType, transparent; if (shapeObject) { @@ -125,6 +126,7 @@ const PageStyle = props => { {_t.textFill} {_t.textBorder} {_t.textEffects} + {isAndroid && } {Device.phone && diff --git a/apps/presentationeditor/mobile/src/view/edit/EditTable.jsx b/apps/presentationeditor/mobile/src/view/edit/EditTable.jsx index 2377f9295..789ba0a45 100644 --- a/apps/presentationeditor/mobile/src/view/edit/EditTable.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/EditTable.jsx @@ -313,14 +313,16 @@ const PageStyle = props => { const _t = t('View.Edit', {returnObjects: true}); const storeTableSettings = props.storeTableSettings; const templates = storeTableSettings.styles; + const isAndroid = Device.android; return (
- {_t.textStyle} - {_t.textFill} - {_t.textBorder} + {_t.textStyle} + {_t.textFill} + {_t.textBorder} + {isAndroid && }
{Device.phone && diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/Edit.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/Edit.jsx index 3df3425df..2115c773d 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/Edit.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/Edit.jsx @@ -296,7 +296,7 @@ const EditLayoutNavbar = ({ editors, inPopover }) => { editors.length > 1 ?
{editors.map((item, index) => {item.caption})} - {isAndroid && } + {isAndroid && }
: { editors[0].caption } } diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx index 7662e68fa..66e0d6e43 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx @@ -147,6 +147,7 @@ const PageBorderColor = props => { const PageStyle = props => { const { t } = useTranslation(); const _t = t('View.Edit', {returnObjects: true}); + const isAndroid = Device.android; const storeChartSettings = props.storeChartSettings; const storeFocusObjects = props.storeFocusObjects; const chartProperties = storeFocusObjects.chartObject && storeFocusObjects.chartObject.get_ChartProperties(); @@ -195,6 +196,7 @@ const PageStyle = props => { {chartStyles ? {_t.textStyle} : null} {_t.textFill} {_t.textBorder} + {isAndroid && } {Device.phone && diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx index dd3eeb6e5..ef6ffd9d7 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx @@ -83,6 +83,7 @@ const PaletteFill = inject("storeFocusObjects", "storeShapeSettings", "storePale const PageStyle = props => { const { t } = useTranslation(); const _t = t('View.Edit', {returnObjects: true}); + const isAndroid = Device.android; const storeShapeSettings = props.storeShapeSettings; const storeFocusObjects = props.storeFocusObjects; const shapeObject = storeFocusObjects.shapeObject.get_ShapeProperties(); @@ -121,6 +122,7 @@ const PageStyle = props => { {_t.textFill} {_t.textBorder} {_t.textEffects} + {isAndroid && } {Device.phone &&