Layout changes

This commit is contained in:
2019-10-22 13:28:50 -05:00
parent 0f2bd33779
commit 0571a69814
15 changed files with 29 additions and 28 deletions

View File

@@ -292,7 +292,7 @@ class MountItems extends IPCContainer {
retryList.push(<Button clicked={()=>this.cancelRetryMount(provider, ()=> this.detectMounts())}
key={'rl_' + retryList.length}>Cancel {provider} Remount ({this.state.RetryItems[provider].RetrySeconds}s)</Button>);
if (retryCount++ < Object.keys(this.state.RetryItems).length) {
retryList.push(<div style={{paddingTop: '8px'}}
retryList.push(<div style={{paddingTop: 'var(--default_spacing)'}}
key={'rl_' + retryList.length}/>);
}
}
@@ -300,8 +300,8 @@ class MountItems extends IPCContainer {
retryDisplay = (
<Modal>
<Box dxDark dxStyle={{padding: '8px', minWidth: '70vw'}}>
<h1 style={{textAlign: 'center', paddingBottom: '8px', color: 'var(--text_color_error)'}}>Mount Failed</h1>
<Box dxDark dxStyle={{padding: 'var(--default_spacing)', minWidth: '70vw'}}>
<h1 style={{textAlign: 'center', paddingBottom: 'var(--default_spacing)', color: 'var(--text_color_error)'}}>Mount Failed</h1>
{retryList}
</Box>
</Modal>
@@ -328,7 +328,7 @@ class MountItems extends IPCContainer {
provider={provider}/>
));
items.push(<div key={'it_' + items.length}
style={{paddingTop: '8px'}} />)
style={{paddingTop: 'var(--default_spacing)'}} />)
}
if (this.props.remoteSupported) {
@@ -344,7 +344,7 @@ class MountItems extends IPCContainer {
remote/>
));
items.push(<div key={'it_' + items.length}
style={{paddingTop: '8px'}}/>)
style={{paddingTop: 'var(--default_spacing)'}}/>)
}
items.splice(items.length - 1, 1);
} else {
@@ -357,7 +357,7 @@ class MountItems extends IPCContainer {
<div className={this.props.remoteSupported ? 'MountItemsRemote' : 'MountItems'}>
{items}
</div>
<div style={{paddingTop: '8px'}}/>
<div style={{paddingTop: 'var(--default_spacing)'}}/>
{footerItems}
</div>);
}