Skip to content

Commit

Permalink
fix incorrect autocomplete avatars (#487)
Browse files Browse the repository at this point in the history
fixes #486
  • Loading branch information
nolanlawson authored Aug 25, 2018
1 parent 1423a6b commit 4edec81
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions routes/_components/compose/ComposeAutosuggestionList.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 4edec81

Please sign in to comment.