Skip to content
Snippets Groups Projects
Commit d7128000 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13515 TIME 1:20 fix autocomplete contact width

parent 1d5fa306
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,13 @@ ...@@ -37,11 +37,13 @@
placeholder="{{lang.availableDatas}}" [matAutocomplete]="auto"> placeholder="{{lang.availableDatas}}" [matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="addData($event)"> <mat-autocomplete #auto="matAutocomplete" (optionSelected)="addData($event)">
<mat-option *ngFor="let item of filteredDataOptions | async" [value]="item" class="dataList"> <mat-option *ngFor="let item of filteredDataOptions | async" [value]="item" class="dataList">
<span class="dataIcon"> <span class="optionContent">
<i color="primary" class="fa {{item.icon}} fa-2x"></i> <span class="dataIcon">
</span> <i color="primary" class="fa {{item.icon}} fa-2x"></i>
<span class="dataLabel"> </span>
{{item.label}} <span class="dataLabel">
{{item.label}}
</span>
</span> </span>
</mat-option> </mat-option>
</mat-autocomplete> </mat-autocomplete>
...@@ -165,4 +167,4 @@ ...@@ -165,4 +167,4 @@
{{lang.cancel}} {{lang.cancel}}
</button> </button>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
} }
} }
::ng-deep .mat-option-text { .optionContent {
display: flex !important; display: flex !important;
.dataIcon { .dataIcon {
...@@ -236,4 +236,4 @@ ...@@ -236,4 +236,4 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment