Skip to content

Commit

Permalink
Merge pull request #29 from StatCan/28-data-volume-ui-is-squashed
Browse files Browse the repository at this point in the history
fix: Improve spacing for new data volume config
  • Loading branch information
saffaalvi authored Oct 7, 2020
2 parents 2e9daf6 + 8df1dc8 commit 738e6fd
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 738e6fd

Please sign in to comment.