Tweak room search and owner display

This commit is contained in:
Jon Staab
2025-06-04 20:42:28 -07:00
parent 7d617d8399
commit d262da39e5
2 changed files with 29 additions and 26 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import cx from 'classnames'
import {preventDefault} from "@lib/html"
import Button from "@lib/components/Button.svelte"
import ProfileName from "@app/components/ProfileName.svelte"
@@ -8,13 +9,14 @@
type Props = {
pubkey: string
url?: string
unstyled?: boolean
}
const {pubkey, url}: Props = $props()
const {pubkey, url, unstyled}: Props = $props()
const openProfile = () => pushModal(ProfileDetail, {pubkey, url})
</script>
<Button onclick={preventDefault(openProfile)} class="link-content">
<Button onclick={preventDefault(openProfile)} class={cx({'link-content': !unstyled})}>
@<ProfileName {pubkey} {url} />
</Button>