Skip to content

Commit 96f1fb2

Browse files
committed
Review 1 Changes
1 parent 25ea516 commit 96f1fb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/components/add-value-form/add-value-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
[(ngModel)]="getItemArray()[i].key">
2929
</mat-form-field>
3030

31-
<mat-form-field *ngIf="type === 'Hash Map'">
31+
<mat-form-field *ngIf="type === 'Hash Map'" [ngStyle]="{'width': 8 * getItemArray()[i].value.length + 'px'}" style="max-width:70%">
3232
<textarea matInput placeholder="Value"
3333
(change)="onValueChange()"
3434
[(ngModel)]="getItemArray()[i].value"

src/app/components/data-viewer/data-viewer.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ export class DataViewerComponent implements OnInit, OnChanges {
239239
viewMode.isEditMode = true;
240240
}
241241
this.dialogService.open(AddValueDialogComponent, {
242-
width: Math.min(1000, Math.max(480, (viewMode.key.length / 50) * 480)) + 'px',
242+
minWidth: Math.min(1000, Math.max(480, (viewMode.key.length / 50) * 480)) + 'px',
243+
minHeight: '400px',
243244
data: viewMode,
244245
}).afterClosed().subscribe(ret => {
245246
if (ret) {

0 commit comments

Comments
 (0)