From 73a12bc5a98f95b3145fac4914a07f2a6e95d736 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 20 Oct 2023 09:50:19 +0200 Subject: [PATCH] [SSE mobile] Fix Bug 57730 --- .../mobile/src/view/edit/EditCell.jsx | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx index 9643ec66fa..86dcf4c315 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'; import {Device} from '../../../../../common/mobile/utils/device'; import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx'; import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs'; +import { Swiper, SwiperSlide } from 'swiper/react'; const EditCell = props => { const isAndroid = Device.android; @@ -145,25 +146,23 @@ const PageCellStyle = props => { } {cellStyles && cellStyles.length ? ( -
-
- {arraySlides.map((_, indexSlide) => { - let stylesSlide = cellStyles.slice(indexSlide * countStylesSlide, (indexSlide * countStylesSlide) + countStylesSlide); - - return ( -
- - {stylesSlide.map((elem, index) => ( - props.onStyleClick(elem.name)}> -
-
- ))} -
-
- )})} -
-
-
+ + {arraySlides.map((_, indexSlide) => { + let stylesSlide = cellStyles.slice(indexSlide * countStylesSlide, (indexSlide * countStylesSlide) + countStylesSlide); + + return ( + + + {stylesSlide.map((elem, index) => ( + props.onStyleClick(elem.name)}> +
+
+ ))} +
+
+ ) + })} +
) : null} )