Layout fixes

This commit is contained in:
2019-10-15 15:04:16 -05:00
parent 94fc2c60ec
commit c7aa851e0d
3 changed files with 10 additions and 7 deletions

View File

@@ -308,9 +308,12 @@ class MountItems extends IPCContainer {
)
}
let headerItems = [];
let footerItems = [];
if (this.props.remoteSupported) {
headerItems.push(<AddRemoteMount key={'hi_' + headerItems.length}/>);
footerItems.push(<AddRemoteMount key={'hi_' + footerItems.length}/>);
} else {
footerItems.push(<div key={'hi_' + footerItems.length}
style={{height: '27px'}}/>);
}
let items = [];
@@ -355,7 +358,7 @@ class MountItems extends IPCContainer {
{items}
</div>
<div style={{paddingTop: '8px'}}/>
{headerItems}
{footerItems}
</div>);
}
}