[SSE mobile] Fix Bug 58519

This commit is contained in:
SergeyEzhin 2022-08-17 17:26:46 +03:00
parent e1c10bdbce
commit 21be71a26d
2 changed files with 4 additions and 3 deletions
apps
common/mobile/resources/less
spreadsheeteditor/mobile/src/view

View file

@ -169,7 +169,7 @@
.page-content {
> .list {
&:last-child {
margin-bottom: 30px;
// margin-bottom: 30px;
}
}
}

View file

@ -41,6 +41,7 @@ const PageAllList = (props) => {
const { t } = useTranslation();
const { sheets, onTabListClick } = props;
const allSheets = sheets.sheets;
const heightView = Device.android ? allSheets.length * 48 : allSheets.length * 44;
useEffect(() => {
const tabs = $$('.sheet-tabs .tab');
@ -59,10 +60,10 @@ const PageAllList = (props) => {
}, [sheets.activeWorksheet]);
return (
<View style={{height: '240px'}}>
<View style={{maxHeight: '240px', height: heightView > 240 ? '240px' : `${heightView}px`}}>
<Page>
<List>
{ allSheets.map( (model,sheetIndex) =>
{allSheets.map((model, sheetIndex) =>
<ListItem className='item-list' key={model.name} title={model.name} checkbox checked={model.active} onClick={() => onTabListClick(sheetIndex)}>
{model.hidden ?
<div slot='after'>