mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fixed the width of provider popup
This commit is contained in:
+9
-2
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user