parent
1423a6b14b
commit
4edec81a0f
|
@ -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'}
|
||||||
|
<div class="compose-autosuggest-list-item-avatar">
|
||||||
<Avatar
|
<Avatar
|
||||||
className="compose-autosuggest-list-item-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>
|
||||||
|
|
Loading…
Reference in a new issue