Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(sg): update the width of the autocompletion window for icmp codes…
Browse files Browse the repository at this point in the history
… and types (#1130)

PR Close #961
  • Loading branch information
tamazlykar committed Jun 28, 2018
1 parent 239bb6a commit 77f3735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<mat-error>
{{ 'SECURITY_GROUP_PAGE.RULES.ENTER_VALID_TYPE' | translate }}
</mat-error>
<mat-autocomplete #icmpTypesAuto="matAutocomplete">
<mat-autocomplete #icmpTypesAuto="matAutocomplete" class="icmp-autocomplete-width">
<mat-option *ngFor="let icmp of filteredIcmpTypes" [value]="icmp.type">
[{{ icmp.type }}] {{ getIcmpTypeTranslationToken(icmp.type) | translate }}
</mat-option>
Expand All @@ -99,7 +99,7 @@
<mat-error>
{{ 'SECURITY_GROUP_PAGE.RULES.ENTER_VALID_CODE' | translate }}
</mat-error>
<mat-autocomplete #icmpCodesAuto="matAutocomplete">
<mat-autocomplete #icmpCodesAuto="matAutocomplete" class="icmp-autocomplete-width">
<mat-option *ngFor="let codes of filteredIcmpCodes" [value]="codes">
[{{ codes }}] {{ getIcmpCodeTranslationToken(+icmpTypeField.value, codes) | translate }}
</mat-option>
Expand Down
5 changes: 5 additions & 0 deletions src/style/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,8 @@ h3 {
.mat-header-row, .mat-row {
height: 0;
}

.icmp-autocomplete-width {
width: 294px;
left: -72px;
}

0 comments on commit 77f3735

Please sign in to comment.