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

View file

@ -1,16 +1,17 @@
<ul class="compose-autosuggest-list"> <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"> <li class="compose-autosuggest-list-item">
<button class="compose-autosuggest-list-button {i === selected ? 'selected' : ''}" <button class="compose-autosuggest-list-button {i === selected ? 'selected' : ''}"
tabindex="0" tabindex="0"
on:click="onClick(event, item)"> on:click="onClick(event, item)">
<div class="compose-autosuggest-list-grid"> <div class="compose-autosuggest-list-grid">
{#if type === 'account'} {#if type === 'account'}
<Avatar <div class="compose-autosuggest-list-item-avatar">
className="compose-autosuggest-list-item-avatar" <Avatar
size="small" size="small"
account={item} account={item}
/> />
</div>
<span class="compose-autosuggest-list-display-name"> <span class="compose-autosuggest-list-display-name">
<AccountDisplayName account={item} /> <AccountDisplayName account={item} />
</span> </span>