diff --git a/apps/common/mobile/resources/less/common.less b/apps/common/mobile/resources/less/common.less
index efea54205a..1371c75b23 100644
--- a/apps/common/mobile/resources/less/common.less
+++ b/apps/common/mobile/resources/less/common.less
@@ -196,6 +196,9 @@
display: flex;
flex-wrap: wrap;
justify-content: space-around;
+ &::before, &::after {
+ display: none;
+ }
}
li {
position: relative;
diff --git a/apps/presentationeditor/mobile/src/view/edit/EditSlide.jsx b/apps/presentationeditor/mobile/src/view/edit/EditSlide.jsx
index 2db9732872..60acd7b498 100644
--- a/apps/presentationeditor/mobile/src/view/edit/EditSlide.jsx
+++ b/apps/presentationeditor/mobile/src/view/edit/EditSlide.jsx
@@ -4,6 +4,7 @@ import {f7, Page, Navbar, List, ListItem, Row, BlockTitle, Link, Toggle, Icon, V
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
import { useTranslation } from 'react-i18next';
import {Device} from '../../../../../common/mobile/utils/device';
+import { element } from 'prop-types';
const EditSlide = props => {
const { t } = useTranslation();
@@ -45,8 +46,6 @@ const PageTheme = props => {
const storeSlideSettings = props.storeSlideSettings;
const arrayThemes = storeSlideSettings.arrayThemes;
const slideThemeIndex = storeSlideSettings.slideThemeIndex;
- const defaultThemes = arrayThemes[0];
- const docThemes = arrayThemes[1];
return (
@@ -59,32 +58,21 @@ const PageTheme = props => {
}
- {arrayThemes.length ? (
+ {arrayThemes.length && (
- {defaultThemes.map((elem, index) => {
+ {arrayThemes.map(theme => {
return (
- {
- storeSlideSettings.changeSlideThemeIndex(elem.Index);
- props.onThemeClick(elem.Index);
- }}>
-
- );
- })}
- {docThemes.map((elem, index) => {
- return (
- {
- storeSlideSettings.changeSlideThemeIndex(elem.Index);
- props.onThemeClick(elem.Index);
+ storeSlideSettings.changeSlideThemeIndex(theme.themeId);
+ props.onThemeClick(theme.themeId);
}}>
);
})}
- ) : null}
+ )}
);
};
@@ -95,7 +83,7 @@ const PageLayout = props => {
const storeFocusObjects = props.storeFocusObjects;
const storeSlideSettings = props.storeSlideSettings;
storeSlideSettings.changeSlideLayoutIndex(storeFocusObjects.slideObject.get_LayoutIndex());
- const arrayLayouts = storeSlideSettings.arrayLayouts;
+ const arrayLayouts = storeSlideSettings.slideLayouts;
const slideLayoutIndex = storeSlideSettings.slideLayoutIndex;
return (
@@ -109,21 +97,25 @@ const PageLayout = props => {
}
- {arrayLayouts.length ? (
-
- {arrayLayouts.map((elem, index) => {
- return (
- {
- storeSlideSettings.changeSlideLayoutIndex(index);
- props.onLayoutClick(index);
- }}>
-
-
- )
- })}
-
- ) : null}
+ {arrayLayouts.length &&
+ arrayLayouts.map((layouts, index) => {
+ return (
+
+ {layouts.map(layout => {
+ return (
+ {
+ storeSlideSettings.changeSlideLayoutIndex(layout.type);
+ props.onLayoutClick(layout.type);
+ }}>
+
+
+ )
+ })}
+
+ );
+ })
+ }
);
};