Skip to content

Commit

Permalink
fix: Improve spacing for new data volume config
Browse files Browse the repository at this point in the history
Adjusts styles so that new data volumes in the "new server" view
display their fields correctly.
  • Loading branch information
brendangadd committed Oct 7, 2020
1 parent 80401dd commit 3b8f8df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>
<mat-icon>add</mat-icon>ADD VOLUME
</button>

<div *ngFor="let vol of datavols; let i = index" class="volume-wrapper">
<div *ngFor="let vol of datavols; let i = index" class="delible-volume">
<app-volume
[volume]="vol"
[notebookName]="parentForm.get('name').value"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
// Data Volumes with the Delete button
.volume-wrapper {
.delible-volume {
display: flex;
width: 100%;
}

.volume-wrapper > app-volume {
flex: 1 1 0px;
.delible-volume > app-volume {
min-width: initial;
max-width: 93%;
}

.volume-wrapper > .del-btn {
flex: 1 1 0px;
.delible-volume > .del-btn {
margin-top: 0.8rem;
margin-left: 1.5rem;
width: 7%;
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/app/resource-form/volume/volume.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@

.volume-wrapper {
display: flex;
margin-left: -0.5rem;
margin-right: -0.5rem;
}

.volume-wrapper > * {
flex: 1 1 0px;
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.volume-wrapper > *:first-child {
padding-left: 0;
}
.volume-wrapper > *:last-child {
padding-right: 0;
}

0 comments on commit 3b8f8df

Please sign in to comment.