[PE mobile] Fix Bug 50847

This commit is contained in:
SergeyEzhin 2021-06-21 16:05:01 +03:00
parent b5bbb3c6b4
commit 698d85360a
2 changed files with 24 additions and 16 deletions

View file

@ -196,6 +196,9 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around; justify-content: space-around;
&::before, &::after {
display: none;
}
} }
li { li {
position: relative; position: relative;

View file

@ -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 { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import {Device} from '../../../../../common/mobile/utils/device'; import {Device} from '../../../../../common/mobile/utils/device';
import { element } from 'prop-types';
const EditSlide = props => { const EditSlide = props => {
const { t } = useTranslation(); const { t } = useTranslation();
@ -82,7 +83,7 @@ const PageLayout = props => {
const storeFocusObjects = props.storeFocusObjects; const storeFocusObjects = props.storeFocusObjects;
const storeSlideSettings = props.storeSlideSettings; const storeSlideSettings = props.storeSlideSettings;
storeSlideSettings.changeSlideLayoutIndex(storeFocusObjects.slideObject.get_LayoutIndex()); storeSlideSettings.changeSlideLayoutIndex(storeFocusObjects.slideObject.get_LayoutIndex());
const arrayLayouts = storeSlideSettings.arrayLayouts; const arrayLayouts = storeSlideSettings.slideLayouts;
const slideLayoutIndex = storeSlideSettings.slideLayoutIndex; const slideLayoutIndex = storeSlideSettings.slideLayoutIndex;
return ( return (
@ -96,21 +97,25 @@ const PageLayout = props => {
</NavRight> </NavRight>
} }
</Navbar> </Navbar>
{arrayLayouts.length ? ( {arrayLayouts.length &&
<List className="slide-layout__list"> arrayLayouts.map((layouts, index) => {
{arrayLayouts.map((elem, index) => { return (
return ( <List className="slide-layout__list" key={index}>
<ListItem key={index} className={slideLayoutIndex === index ? "active" : ""} {layouts.map(layout => {
onClick={() => { return (
storeSlideSettings.changeSlideLayoutIndex(index); <ListItem key={layout.type} className={slideLayoutIndex === layout.type ? "active" : ""}
props.onLayoutClick(index); onClick={() => {
}}> storeSlideSettings.changeSlideLayoutIndex(layout.type);
<img src={elem.Image} style={{width: elem.Width, height: elem.Height}} alt=""/> props.onLayoutClick(layout.type);
</ListItem> }}>
) <img src={layout.image} style={{width: layout.width, height: layout.height}} alt=""/>
})} </ListItem>
</List> )
) : null} })}
</List>
);
})
}
</Page> </Page>
); );
}; };