diff --git a/package.json b/package.json index 5992460a1..dd5019c40 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "dependencies": { "@ai-sdk/svelte": "^1.1.24", "@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e190a19", - "@appwrite.io/pink": "0.25.0", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1", "@appwrite.io/pink-legacy": "^1.0.3", diff --git a/src/lib/components/cardContainer.svelte b/src/lib/components/cardContainer.svelte index ac5223a6d..ccbd1075b 100644 --- a/src/lib/components/cardContainer.svelte +++ b/src/lib/components/cardContainer.svelte @@ -2,10 +2,11 @@ import { page } from '$app/state'; import { Empty } from '$lib/components'; import { CARD_LIMIT } from '$lib/constants'; - import { getServiceLimit, type PlanServices } from '$lib/stores/billing'; - import { preferences } from '$lib/stores/preferences'; import { isCloud } from '$lib/system'; import CardPlanLimit from './cardPlanLimit.svelte'; + import { preferences } from '$lib/stores/preferences'; + import { isSmallViewport } from '$lib/stores/viewport'; + import { getServiceLimit, type PlanServices } from '$lib/stores/billing'; export let disableEmpty = true; export let offset = 0; @@ -17,9 +18,13 @@ $: planLimit = getServiceLimit(serviceId) || Infinity; $: limit = preferences.get(page.route)?.limit ?? CARD_LIMIT; + + $: gridItemStyle = $isSmallViewport + ? undefined + : `--grid-item-size: ${total > 3 ? '22rem' : '25rem'}`; -