fix incorrect autocomplete avatars (#487)

fixes #486
css-firefox-fix
Nolan Lawson 2018-08-24 21:35:02 -07:00 zatwierdzone przez GitHub
rodzic 1423a6b14b
commit 4edec81a0f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1,16 +1,17 @@
<ul class="compose-autosuggest-list">
{#each items as item, i}
{#each items as item, i (item.shortcode ? `emoji-${item.shortcode}` : `account-${item.id}`)}
<li class="compose-autosuggest-list-item">
<button class="compose-autosuggest-list-button {i === selected ? 'selected' : ''}"
tabindex="0"
on:click="onClick(event, item)">
<div class="compose-autosuggest-list-grid">
{#if type === 'account'}
<Avatar
className="compose-autosuggest-list-item-avatar"
size="small"
account={item}
/>
<div class="compose-autosuggest-list-item-avatar">
<Avatar
size="small"
account={item}
/>
</div>
<span class="compose-autosuggest-list-display-name">
<AccountDisplayName account={item} />
</span>