fixed the width of provider popup

This commit is contained in:
Harsh Mahajan
2025-09-30 19:37:29 +05:30
parent a41cfd8958
commit 8a9efc1457
@@ -1,21 +1,28 @@
<script lang="ts">
import { ImagePreview } from '$lib/components';
import { Layout } from '@appwrite.io/pink-svelte';
export let lines = [];
export let image: { src: { dark: string; light: string }; alt: string } | null = null;
</script>
<div class="u-flex-vertical u-gap-16">
<div class="u-flex-vertical u-gap-16 popover-content">
{#each lines as line}
<p>{@html line}</p>
{/each}
{#if image}
<ImagePreview darkSrc={image.src.dark} lightSrc={image.src.light} alt={image.alt} />
<Layout.Stack class="image-wrapper">
<ImagePreview darkSrc={image.src.dark} lightSrc={image.src.light} alt={image.alt} />
</Layout.Stack>
{/if}
</div>
<style>
.popover-content {
max-inline-size: 260px;
}
div > p {
color: hsl(var(--color-neutral-50));