Skip to content

Commit 64bebc5

Browse files
authored
Merge pull request juice-shop#2529 from AyushRajSinghParihar/Web3SandboxCheck
GWEI fixed - indentation issue persists
2 parents 378ec12 + 04768bc commit 64bebc5

2 files changed

Lines changed: 47 additions & 23 deletions

File tree

frontend/src/app/web3-sandbox/web3-sandbox.component.html

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,35 @@ <h4>Compiler Errors:</h4>
5656
</div>
5757
<div *ngIf="compiledContracts">
5858
<h3 class="contracts-title">{{ "TITLE_CONTRACT_DEPLOYMENT" | translate}}</h3>
59-
<mat-form-field
60-
style="width: 45%; margin-right: 10%"
61-
appearance="outline"
62-
color="accent"
63-
>
64-
<mat-label>{{ "LABEL_COMPILED_CONTRACTS" | translate}}</mat-label>
65-
<select matNativeControl [(ngModel)]="selectedContractName">
66-
<option
67-
*ngFor="let contractName of contractNames"
68-
[value]="contractName"
69-
>
70-
{{ contractName }}
71-
</option>
72-
</select>
73-
</mat-form-field>
74-
<mat-form-field>
75-
<input
76-
matInput
77-
type="number"
78-
[placeholder]="'GWEI_VALUE_FOR_SENDING_ETH' | translate"
79-
[(ngModel)]="commonGweiValue"
80-
/>
81-
</mat-form-field>
59+
<div class="form-fields-container">
60+
<mat-form-field
61+
class="contract-selector"
62+
appearance="outline"
63+
color="accent"
64+
>
65+
<mat-label>{{ "LABEL_COMPILED_CONTRACTS" | translate}}</mat-label>
66+
<select matNativeControl [(ngModel)]="selectedContractName">
67+
<option
68+
*ngFor="let contractName of contractNames"
69+
[value]="contractName"
70+
>
71+
{{ contractName }}
72+
</option>
73+
</select>
74+
</mat-form-field>
75+
<mat-form-field
76+
class="gwei-input"
77+
appearance="outline"
78+
color="accent"
79+
>
80+
<mat-label>{{ "GWEI_VALUE_FOR_SENDING_ETH" | translate }}</mat-label>
81+
<input
82+
matInput
83+
type="number"
84+
[(ngModel)]="commonGweiValue"
85+
/>
86+
</mat-form-field>
87+
</div>
8288
<button
8389
mat-raised-button
8490
type="button"

frontend/src/app/web3-sandbox/web3-sandbox.component.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,21 @@ ul {
118118
font-weight: 500;
119119
margin-top: 16px;
120120
}
121+
122+
.form-fields-container {
123+
display: flex;
124+
flex-wrap: wrap;
125+
gap: 16px;
126+
margin-bottom: 16px;
127+
width: 100%;
128+
}
129+
130+
.contract-selector {
131+
flex: 1 1 60%;
132+
min-width: 200px;
133+
}
134+
135+
.gwei-input {
136+
flex: 1 1 30%;
137+
min-width: 150px;
138+
}

0 commit comments

Comments
 (0)