Move edit icon to the left on remote path mappings

Fixes: #6686
This commit is contained in:
nitsua 2021-10-30 23:31:41 -04:00 committed by bakerboy448
parent 194e0f3d7f
commit 12ae4fba88
3 changed files with 17 additions and 17 deletions

View File

@ -1,23 +1,20 @@
.remotePathMapping { .remotePathMapping {
display: flex; display: flex;
align-items: stretch; align-items: left;
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
border-bottom: 1px solid $borderColor; border-bottom: 1px solid $borderColor;
line-height: 30px; line-height: 30px;
} }
.actions {
flex: 0 0 25px;
}
.host { .host {
flex: 0 0 300px; flex: 1 0 300px;
} }
.path { .path {
flex: 0 0 400px; flex: 1 0 400px;
}
.actions {
display: flex;
justify-content: flex-end;
flex: 1 0 auto;
padding-right: 10px;
} }

View File

@ -66,9 +66,6 @@ class RemotePathMapping extends Component {
styles.remotePathMapping styles.remotePathMapping
)} )}
> >
<div className={styles.host}>{host}</div>
<div className={styles.path}>{remotePath}</div>
<div className={styles.path}>{localPath}</div>
<div className={styles.actions}> <div className={styles.actions}>
<Link <Link
@ -78,6 +75,10 @@ class RemotePathMapping extends Component {
</Link> </Link>
</div> </div>
<div className={styles.host}>{host}</div>
<div className={styles.path}>{remotePath}</div>
<div className={styles.path}>{localPath}</div>
<EditRemotePathMappingModalConnector <EditRemotePathMappingModalConnector
id={id} id={id}
isOpen={this.state.isEditRemotePathMappingModalOpen} isOpen={this.state.isEditRemotePathMappingModalOpen}

View File

@ -4,17 +4,19 @@
font-weight: bold; font-weight: bold;
} }
.actions {
flex: 0 0 25px;
}
.host { .host {
flex: 0 0 300px; flex: 1 0 300px;
} }
.path { .path {
flex: 0 0 400px; flex: 1 0 400px;
} }
.addRemotePathMapping { .addRemotePathMapping {
display: flex;
justify-content: flex-end;
padding-right: 10px; padding-right: 10px;
} }