mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 05:54:19 +01:00
feat: highlight emoji completion
This commit is contained in:
@@ -26,7 +26,7 @@ const useEmojiComplete = () => {
|
||||
},
|
||||
template: (config: CustomEmojiConfig) => {
|
||||
const e = (
|
||||
<div class="flex gap-1 pb-1">
|
||||
<div class="flex gap-1 border-b px-2 py-1">
|
||||
<img class="h-6 max-w-[3rem]" src={config.url} alt={config.shortcode} />
|
||||
<div>{config.shortcode}</div>
|
||||
</div>
|
||||
@@ -38,7 +38,11 @@ const useEmojiComplete = () => {
|
||||
],
|
||||
{
|
||||
dropdown: {
|
||||
className: 'px-2 pt-2 pb-1 bg-white shadow rounded',
|
||||
className: 'bg-white shadow rounded',
|
||||
item: {
|
||||
className: 'cursor-pointer',
|
||||
activeClassName: 'bg-rose-100 cursor-pointer',
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user