Add room detail, assume admins are members

This commit is contained in:
Jon Staab
2025-11-10 14:59:15 -08:00
parent 5248275d73
commit 761e369313
8 changed files with 254 additions and 110 deletions
+4 -3
View File
@@ -4,13 +4,14 @@
type Props = {
src: string
alt: string
size?: number
}
const {src, alt}: Props = $props()
const {src, alt, size = 5}: Props = $props()
</script>
{#if src.includes("image/svg") || src.endsWith(".svg")}
<Icon icon={src} />
<Icon icon={src} {size} />
{:else}
<img {src} {alt} class="h-5 w-5 rounded-lg object-cover" />
<img {src} {alt} class="h-{size} w-{size} rounded-lg object-cover" />
{/if}