+
{{slotProps.item}}
@@ -102,16 +102,12 @@ export default {
diff --git a/src/views/autocomplete/AutoCompleteDoc.vue b/src/views/autocomplete/AutoCompleteDoc.vue
index 5678a3959..29c3ab2ea 100755
--- a/src/views/autocomplete/AutoCompleteDoc.vue
+++ b/src/views/autocomplete/AutoCompleteDoc.vue
@@ -261,7 +261,7 @@ export default {
<h3>Dropdown and Templating</h3>
<AutoComplete v-model="brand" :suggestions="filteredBrands" @complete="searchBrand($event)" placeholder="Hint: type 'v' or 'f'" :dropdown="true">
<template #item="slotProps">
- <div class="p-clearfix p-autocomplete-brand-item">
+ <div class="p-autocomplete-brand-item">
<img :alt="slotProps.item" :src="'demo/images/car/' + slotProps.item + '.png'" />
<div>{{slotProps.item}}</div>
</div>
@@ -341,17 +341,13 @@ export default {
.p-autocomplete-brand-item {
- img {
- width: 32px;
- display: inline-block;
- margin: 5px 0 2px 5px;
- }
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
- div {
- font-size: 16px;
- float: right;
- margin: 10px 10px 0 0;
- }
+ img {
+ width: 28px;
+ }
}