fix incorrect autocomplete avatars (#487)

fixes #486
This commit is contained in:
Nolan Lawson 2018-08-24 21:35:02 -07:00 committed by GitHub
parent 1423a6b14b
commit 4edec81a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -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>