Skip to content

Commit 8df1dc8

Browse files
committed
fix: Improve spacing for new data volume config
Adjusts styles so that new data volumes in the "new server" view display their fields correctly.
1 parent 2e9daf6 commit 8df1dc8

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

frontend/src/app/resource-form/form-data-volumes/form-data-volumes.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>
1717
<mat-icon>add</mat-icon>ADD VOLUME
1818
</button>
1919

20-
<div *ngFor="let vol of datavols; let i = index" class="volume-wrapper">
20+
<div *ngFor="let vol of datavols; let i = index" class="delible-volume">
2121
<app-volume
2222
[volume]="vol"
2323
[notebookName]="parentForm.get('name').value"

frontend/src/app/resource-form/form-data-volumes/form-data-volumes.component.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
// Data Volumes with the Delete button
2-
.volume-wrapper {
2+
.delible-volume {
33
display: flex;
44
width: 100%;
55
}
66

7-
.volume-wrapper > app-volume {
8-
flex: 1 1 0px;
7+
.delible-volume > app-volume {
98
min-width: initial;
109
max-width: 93%;
1110
}
1211

13-
.volume-wrapper > .del-btn {
14-
flex: 1 1 0px;
12+
.delible-volume > .del-btn {
1513
margin-top: 0.8rem;
1614
margin-left: 1.5rem;
1715
width: 7%;

frontend/src/app/resource-form/volume/volume.component.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020

2121
.volume-wrapper {
2222
display: flex;
23-
margin-left: -0.5rem;
24-
margin-right: -0.5rem;
2523
}
2624

2725
.volume-wrapper > * {
2826
flex: 1 1 0px;
2927
padding-right: 0.5rem;
3028
padding-left: 0.5rem;
3129
}
30+
.volume-wrapper > *:first-child {
31+
padding-left: 0;
32+
}
33+
.volume-wrapper > *:last-child {
34+
padding-right: 0;
35+
}

0 commit comments

Comments
 (0)