mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
refactor: ♻️ Make auth store require less null checks
This commit is contained in:
parent
68e23a818a
commit
b23ed66401
32 changed files with 111 additions and 124 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<Command
|
||||
class="rounded border shadow-md min-w-[200px] h-fit not-prose"
|
||||
class="rounded border shadow-md min-w-50 h-fit not-prose"
|
||||
:selected-value="emojis[selectedIndex]?.id"
|
||||
>
|
||||
<CommandList>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
class="scroll-m-10"
|
||||
>
|
||||
<img
|
||||
class="h-[1lh] align-middle inline hover:scale-110 transition-transform duration-75 ease-in-out"
|
||||
class="h-lh align-middle inline hover:scale-110 transition-transform duration-75 ease-in-out"
|
||||
:src="emoji.url"
|
||||
:title="emoji.shortcode"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -126,11 +126,9 @@ export const emojiSuggestion = {
|
|||
return [];
|
||||
}
|
||||
|
||||
const emojis = authStore.emojis;
|
||||
|
||||
return go(
|
||||
query,
|
||||
emojis
|
||||
authStore.emojis
|
||||
.filter((emoji) => emoji.shortcode.includes(query))
|
||||
.map((emoji) => ({
|
||||
key: emoji.shortcode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue