diff --git a/src/lib/components/cardGrid.svelte b/src/lib/components/cardGrid.svelte index d378a9c66..c45d112fe 100644 --- a/src/lib/components/cardGrid.svelte +++ b/src/lib/components/cardGrid.svelte @@ -8,8 +8,8 @@ - - +
+ {#if $$slots.default} @@ -17,12 +17,12 @@ {/if} -
+
- +
{#if $$slots.actions && !hideFooter} @@ -34,3 +34,25 @@ {/if} + + diff --git a/src/lib/components/variables/environmentVariables.svelte b/src/lib/components/variables/environmentVariables.svelte index 8b4edb8c3..98290c041 100644 --- a/src/lib/components/variables/environmentVariables.svelte +++ b/src/lib/components/variables/environmentVariables.svelte @@ -31,6 +31,7 @@ import DeleteVariableModal from './deleteVariableModal.svelte'; import UpdateVariableModal from './updateVariableModal.svelte'; import { Click, trackEvent } from '$lib/actions/analytics'; + import { isSmallViewport } from '$lib/stores/viewport'; const DOCS_LINKS: Record = { site: 'https://appwrite.io/docs/products/sites/develop#accessing-environment-variables', @@ -62,18 +63,26 @@ const createSource = $derived(analyticsCreateSource || analyticsSource); const docsLink = $derived(DOCS_LINKS[productLabel]); - const tableColumns = [ - { id: 'key', width: { min: 300 } }, - { id: 'value', width: { min: 280 } }, - { id: 'actions', width: 40 } - ]; + const tableColumns = $derived( + $isSmallViewport + ? [ + { id: 'key', width: { min: 420 } }, + { id: 'value', width: { min: 240 } }, + { id: 'actions', width: 40 } + ] + : [ + { id: 'key', width: { min: 300 } }, + { id: 'value', width: { min: 280 } }, + { id: 'actions', width: 40 } + ] + ); Set up environment variables to securely manage keys and settings for your project. - +