Add room policy indicator

This commit is contained in:
Jon Staab
2025-11-05 16:59:17 -08:00
parent a52c2b4c3c
commit 41d50d8c28
8 changed files with 146 additions and 25 deletions
+9 -15
View File
@@ -1,26 +1,20 @@
<script lang="ts">
import Hashtag from "@assets/icons/hashtag.svg?dataurl"
import Icon from "@lib/components/Icon.svelte"
import ImageIcon from "@lib/components/ImageIcon.svelte"
import RoomName from "@app/components/RoomName.svelte"
import {deriveRoom} from "@app/core/state"
import RoomImage from "@app/components/RoomImage.svelte"
interface Props {
url: any
h: any
url: any
}
const {url, h}: Props = $props()
const room = deriveRoom(url, h)
</script>
{#if $room.picture}
{@const src = $room.picture}
<ImageIcon {src} alt="Room icon" />
{:else}
<Icon icon={Hashtag} />
{/if}
<div class="min-w-0 overflow-hidden text-ellipsis">
<RoomName {url} {h} />
<div class="flex flex-grow items-center justify-between gap-4">
<div class="flex items-center gap-3">
<RoomImage {url} {h} />
<div class="min-w-0 overflow-hidden text-ellipsis">
<RoomName {url} {h} />
</div>
</div>
</div>