Skip to content

Commit

Permalink
Increase mat autocomplete panel width to prevent artifactual corrupti…
Browse files Browse the repository at this point in the history
…on of time format strings. For ravel #542.
  • Loading branch information
highperformancecoder committed Apr 28, 2024
1 parent fe56680 commit b2abade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
[matAutocomplete]="auto"
class="form-control autocomplete"
/>
<mat-autocomplete [panelWidth]="'10rem'" #auto="matAutocomplete">
<mat-autocomplete [panelWidth]="'14rem'" #auto="matAutocomplete">
<ng-container *ngIf="type.value === 'time'">
<mat-option
*ngFor="let tfs of timeFormatStrings"
Expand Down Expand Up @@ -265,7 +265,7 @@
/>
<mat-autocomplete
id="format_{{ i }}"
[panelWidth]="'10rem'"
[panelWidth]="'14rem'"
#autocompleteFormat="matAutocomplete"
(optionSelected)="dialogState.spec.dimensions[i].units = $event.option.value"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}

::ng-deep .mat-mdc-autocomplete-panel {
width: 9rem !important;
width: 14rem !important;
}

::ng-deep .mat-mdc-option {
Expand Down Expand Up @@ -195,4 +195,4 @@ td {
color: white;
}
}
}
}

0 comments on commit b2abade

Please sign in to comment.