[SSE mobile] Fix preview cell style
This commit is contained in:
parent
6f28983db1
commit
8d444c0770
|
@ -16,6 +16,7 @@ const EditCell = props => {
|
||||||
const cellStyles = storeCellSettings.cellStyles;
|
const cellStyles = storeCellSettings.cellStyles;
|
||||||
const curStyleName = storeCellSettings.styleName;
|
const curStyleName = storeCellSettings.styleName;
|
||||||
const curStyle = cellStyles.find(style => style.name === curStyleName);
|
const curStyle = cellStyles.find(style => style.name === curStyleName);
|
||||||
|
console.log(curStyle);
|
||||||
|
|
||||||
const fontInfo = storeCellSettings.fontInfo;
|
const fontInfo = storeCellSettings.fontInfo;
|
||||||
const fontName = fontInfo.name || _t.textFonts;
|
const fontName = fontInfo.name || _t.textFonts;
|
||||||
|
@ -114,7 +115,7 @@ const EditCell = props => {
|
||||||
}}>
|
}}>
|
||||||
{!isAndroid && <Icon slot="media" icon="icon-cell-style" />}
|
{!isAndroid && <Icon slot="media" icon="icon-cell-style" />}
|
||||||
<div slot="after">
|
<div slot="after">
|
||||||
<div className='preview-cell-style' style={{backgroundImage: `url(${curStyle.image})`}}></div>
|
<div className='preview-cell-style' style={{backgroundImage: `url(${curStyle ? curStyle.image : null})`}}></div>
|
||||||
</div>
|
</div>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
|
|
Loading…
Reference in a new issue