Increase min sql field height, add label to sql field

This commit is contained in:
2024-09-04 21:51:04 +09:30
parent e3024bdfae
commit 79ca06f7d1
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
mat-form-field {
width: 100%;
}
ngx-monaco-editor {
min-height: 400px;
}

View File

@@ -30,12 +30,15 @@ import { MonacoEditorModule } from 'ngx-monaco-editor-v2';
[(ngModel)]="value"
[maxlength]="configuration().maxLength ?? null"
/>
<mat-hint *ngIf="text.hasError('maxlength')"
@if(text.hasError('maxlength')) {
<mat-hint
>Text should be less than
{{ configuration().maxLength }} characters</mat-hint
>
}
</mat-form-field>
} @else {
<h2>{{ label() }}</h2>
<ngx-monaco-editor
[(ngModel)]="value"
[options]="editorOptions"