Fix tiptap styling

This commit is contained in:
Jon Staab
2025-01-02 16:12:46 -08:00
parent 5253980cdc
commit f618e4e1f3
2 changed files with 22 additions and 4 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import type {SvelteComponent} from "svelte"
import {derived} from "svelte/store"
import {type Instance} from "tippy.js"
import {append, remove, uniq} from "@welshman/lib"
import {profileSearch} from "@welshman/app"
@@ -20,6 +21,8 @@
let popover: Instance
let instance: SvelteComponent
const search = derived(profileSearch, $profileSearch => $profileSearch.searchValues)
const selectPubkey = (pubkey: string) => {
term = ""
popover.hide()
@@ -76,8 +79,8 @@
component={Suggestions}
props={{
term,
search,
select: selectPubkey,
search: profileSearch,
component: ProfileSuggestion,
class: "rounded-box",
style: `left: 4px; width: ${input?.clientWidth + 12}px`,