From a25298dac899fed76c6572d93df38f2ff9b03dd4 Mon Sep 17 00:00:00 2001
From: okorie2
Date: Sat, 28 Mar 2026 10:30:08 +0000
Subject: [PATCH] fix: resolve table overflow by adding Container component
with disableMarginBlock
---
src/lib/layout/container.svelte | 6 +
.../settings/updateInstallations.svelte | 130 ++++++------
.../updateVariables.svelte | 186 +++++++++---------
3 files changed, 169 insertions(+), 153 deletions(-)
diff --git a/src/lib/layout/container.svelte b/src/lib/layout/container.svelte
index ffc83085b6..dec3ca9861 100644
--- a/src/lib/layout/container.svelte
+++ b/src/lib/layout/container.svelte
@@ -13,6 +13,7 @@
databasesScreen = false,
databasesMainScreen = false,
expandHeightButton = false,
+ disableMarginBlock = false,
size = null,
children,
...restProps
@@ -26,6 +27,7 @@
databasesScreen?: boolean;
databasesMainScreen?: boolean;
expandHeightButton?: boolean;
+ disableMarginBlock?: boolean;
children?: Snippet;
size?: 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | null;
} & HTMLAttributes = $props();
@@ -46,6 +48,7 @@
class:databasesScreen
class:expandHeightButton
class:databasesMainScreen
+ class:disableMarginBlock
class="console-container"
class:paddingInlineEndDouble
class:paddingInlineEnd={!paddingInlineEnd}>
@@ -62,6 +65,9 @@
}
:global(.console-container) {
margin-block: var(--base-32);
+ &.disableMarginBlock {
+ margin-block: unset;
+ }
&.insideSideSheet {
margin-block: var(--base-20);
diff --git a/src/routes/(console)/project-[region]-[project]/settings/updateInstallations.svelte b/src/routes/(console)/project-[region]-[project]/settings/updateInstallations.svelte
index 8cb2cb9f8e..3bb35ea0a7 100644
--- a/src/routes/(console)/project-[region]-[project]/settings/updateInstallations.svelte
+++ b/src/routes/(console)/project-[region]-[project]/settings/updateInstallations.svelte
@@ -2,6 +2,7 @@
import { goto } from '$app/navigation';
import { page } from '$app/state';
import { Avatar, CardGrid, PaginationInline } from '$lib/components';
+ import { Container } from '$lib/layout';
import { Button as FormButton } from '$lib/elements/forms';
import { getApiEndpoint } from '$lib/stores/sdk';
import type { Models } from '@appwrite.io/console';
@@ -95,68 +96,73 @@
Add installation
-
-
-
- Owner
- Updated
-
-
- {#each installations as installation, i}
-
-
-
-
-
-
-
- {installation.organization}
-
-
-
-
-
-
-
-
-
-
- (showInstallationDropdown[i] = false)}>
- Configure
-
- {
- showInstallationDropdown[i] = false;
- showGitDisconnect = true;
- selectedInstallation = installation;
- }}>
- Disconnect
-
-
-
-
-
- {/each}
-
+
+
+
+ Owner
+ Updated
+
+
+ {#each installations as installation, i}
+
+
+
+
+
+
+
+ {installation.organization}
+
+
+
+
+
+
+
+
+
+
+
+ (showInstallationDropdown[i] = false)}>
+ Configure
+
+ {
+ showInstallationDropdown[i] = false;
+ showGitDisconnect = true;
+ selectedInstallation = installation;
+ }}>
+ Disconnect
+
+
+
+
+
+ {/each}
+
+
{#if total > limit}
Total installations: {total}
diff --git a/src/routes/(console)/project-[region]-[project]/updateVariables.svelte b/src/routes/(console)/project-[region]-[project]/updateVariables.svelte
index 91948168ec..f7a292ceaf 100644
--- a/src/routes/(console)/project-[region]-[project]/updateVariables.svelte
+++ b/src/routes/(console)/project-[region]-[project]/updateVariables.svelte
@@ -7,6 +7,7 @@
import { goto, invalidate } from '$app/navigation';
import { Click, Submit, trackError, trackEvent } from '$lib/actions/analytics';
import { Dependencies } from '$lib/constants';
+ import { Container } from '$lib/layout';
import { addNotification } from '$lib/stores/notifications';
import PromoteVariableModal from './promoteVariableModal.svelte';
import CreateVariable from './createVariableModal.svelte';
@@ -343,111 +344,114 @@
{/if}
-
-
- Key
- Value
-
-
- {#each variableList.variables.slice(offset, offset + limit) as variable}
-
-
- {@const isConflicting = globalVariableList
- ? globalVariableList.variables.find(
- (globalVariable) => globalVariable.key === variable.key
- ) !== undefined
- : false}
+
+
+
+ Key
+ Value
+
+
+ {#each variableList.variables.slice(offset, offset + limit) as variable}
+
+
+ {@const isConflicting = globalVariableList
+ ? globalVariableList.variables.find(
+ (globalVariable) =>
+ globalVariable.key === variable.key
+ ) !== undefined
+ : false}
-
- {#if isConflicting && hasConflictOnPage}
-
- {/if}
-
-
-
-
+
+ {#if isConflicting && hasConflictOnPage}
+
+ {/if}
+
+
+
+
-
- {#if variable.secret}
-
- {:else}
-
- {/if}
-
-
-
-
-
-
- {
- selectedVar = variable;
- showUpdate = true;
- toggle(e);
- }}>
- Update
-
- {#if !variable.secret}
+
+ {#if variable.secret}
+
+ {:else}
+
+ {/if}
+
+
+
+
+
+
{
selectedVar = variable;
- showSecretModal = true;
+ showUpdate = true;
toggle(e);
}}>
- Secret
+ Update
- {/if}
- {#if !isGlobal}
+ {#if !variable.secret}
+ {
+ selectedVar = variable;
+ showSecretModal = true;
+ toggle(e);
+ }}>
+ Secret
+
+ {/if}
+ {#if !isGlobal}
+ {
+ selectedVar = variable;
+ showPromoteModal = true;
+ toggle(e);
+ }}>
+ Promote
+
+ {/if}
{
selectedVar = variable;
- showPromoteModal = true;
+ showDeleteModal = true;
toggle(e);
}}>
- Promote
+ Delete
- {/if}
- {
- selectedVar = variable;
- showDeleteModal = true;
- toggle(e);
- }}>
- Delete
-
-
-
-
-
-
- {/each}
-
+
+
+
+
+
+ {/each}
+
+
{#if sum > limit}
Total variables: {sum}