[DE] shape icons weren't appeare

This commit is contained in:
Maxim Kadushkin 2020-10-26 10:59:18 +03:00
parent 133afc5771
commit f0884ec77b
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,22 @@
.row {
padding: 0 10px;
li {
list-style: none;
}
}
.shapes {
li {
width: 70px;
height: 70px;
margin: 0 1px;
.thumb {
width: 100%;
height: 100%;
background-color: @themeColor;
}
}
}

View file

@ -97,7 +97,7 @@ const PageReplace = props => {
let shapes = storeShapeSettings.getStyleGroups();
shapes.splice(0, 1); // Remove line shapes
return (
<Page>
<Page className="shapes">
<Navbar title={_t.textReplace} backLink={_t.textBack} />
{shapes.map((row, indexRow) => {
return (
@ -106,7 +106,7 @@ const PageReplace = props => {
return (
<li key={'shape-' + indexRow + '-' + index} onClick={() => {props.onReplace(shape.type)}}>
<div className="thumb"
style={{maskImage: `url('../../../resources/img/shapes/'${shape.thumb})`}}>
style={{WebkitMaskImage: `url('resources/img/shapes/${shape.thumb}')`}}>
</div>
</li>
)

View file

@ -1,5 +1,6 @@
@import '../../../../common/mobile/resources/less/collaboration.less';
@import '../../../../common/mobile/resources/less/common.less';
@import '../../../../common/mobile/resources/less/common-ios.less';
@import '../../../../common/mobile/resources/less/common-material.less';
@import './app-material.less';