diff --git a/package-lock.json b/package-lock.json index e55007247..b925c1ed7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.1", "dependencies": { "@aw-labs/appwrite-console": "^1.0.0-0", - "@aw-labs/icons": "0.0.0-53", - "@aw-labs/ui": "0.0.0-53", + "@aw-labs/icons": "0.0.0-54", + "@aw-labs/ui": "0.0.0-54", "echarts": "^5.3.3", "tippy.js": "^6.3.7", "web-vitals": "^2.1.4" @@ -77,14 +77,14 @@ } }, "node_modules/@aw-labs/icons": { - "version": "0.0.0-53", - "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-53.tgz", - "integrity": "sha512-9UhHTGajh2HJun2uYbcMyxRtPsgIQ5CXf8mn/sCiRyZJIw5FYtuxTSkP/35hv2zJsVq/mY09HvfdX3w4XVKItg==" + "version": "0.0.0-54", + "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-54.tgz", + "integrity": "sha512-lk+uikRag3Y5Rm4Ys5lHBhknhCVpA/oTaIBBDgB6nidqtJdqLpa+Nur4BdsBXOEZTlo2yOiWU2NNAl6ZzUzFGQ==" }, "node_modules/@aw-labs/ui": { - "version": "0.0.0-53", - "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-53.tgz", - "integrity": "sha512-5ftq05SZ9lVdXGHgHIyxwtGznfKsCa1fKPpZhS+279IUTIB+H7GIq0g2U2EzRBj7ht0PXNZJNO4n9hO2ItDJwA==", + "version": "0.0.0-54", + "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-54.tgz", + "integrity": "sha512-1Dj216qPaVKdBScW+1XIp6IOVBdcv/kYjiWO4YiFtoQ/IaayoSO6njlAPTwyQzclmX5A/9suEGadOVa3NZqbgQ==", "dependencies": { "@aw-labs/icons": "*" } @@ -7698,14 +7698,14 @@ } }, "@aw-labs/icons": { - "version": "0.0.0-53", - "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-53.tgz", - "integrity": "sha512-9UhHTGajh2HJun2uYbcMyxRtPsgIQ5CXf8mn/sCiRyZJIw5FYtuxTSkP/35hv2zJsVq/mY09HvfdX3w4XVKItg==" + "version": "0.0.0-54", + "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-54.tgz", + "integrity": "sha512-lk+uikRag3Y5Rm4Ys5lHBhknhCVpA/oTaIBBDgB6nidqtJdqLpa+Nur4BdsBXOEZTlo2yOiWU2NNAl6ZzUzFGQ==" }, "@aw-labs/ui": { - "version": "0.0.0-53", - "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-53.tgz", - "integrity": "sha512-5ftq05SZ9lVdXGHgHIyxwtGznfKsCa1fKPpZhS+279IUTIB+H7GIq0g2U2EzRBj7ht0PXNZJNO4n9hO2ItDJwA==", + "version": "0.0.0-54", + "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-54.tgz", + "integrity": "sha512-1Dj216qPaVKdBScW+1XIp6IOVBdcv/kYjiWO4YiFtoQ/IaayoSO6njlAPTwyQzclmX5A/9suEGadOVa3NZqbgQ==", "requires": { "@aw-labs/icons": "*" } diff --git a/package.json b/package.json index 3c1f7f036..dca4c74ed 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ }, "dependencies": { "@aw-labs/appwrite-console": "^1.0.0-0", - "@aw-labs/icons": "0.0.0-53", - "@aw-labs/ui": "0.0.0-53", + "@aw-labs/icons": "0.0.0-54", + "@aw-labs/ui": "0.0.0-54", "echarts": "^5.3.3", "tippy.js": "^6.3.7", "web-vitals": "^2.1.4" diff --git a/src/lib/components/gridItem1.svelte b/src/lib/components/gridItem1.svelte index 2b78f6c2e..a826e5663 100644 --- a/src/lib/components/gridItem1.svelte +++ b/src/lib/components/gridItem1.svelte @@ -4,16 +4,23 @@
-
-

-
+
+
+

+
+
-
- + +
+
+ +
+
+
+
    + +
-
    - -
diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index 05da1e24f..8a85e526b 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -10,6 +10,7 @@ export let error: string = null; export let closable = true; + let alert: HTMLElement; const dispatch = createEventDispatcher(); const transitionFly: FlyParams = { duration: 150, @@ -48,6 +49,10 @@ document.body.classList.remove('u-overflow-hidden'); } } + + $: if (error) { + alert?.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'nearest' }); + } @@ -81,14 +86,16 @@ diff --git a/src/lib/layout/notifications.svelte b/src/lib/layout/notifications.svelte index 7b019f930..202702799 100644 --- a/src/lib/layout/notifications.svelte +++ b/src/lib/layout/notifications.svelte @@ -4,8 +4,8 @@ {#if $notifications} -
-
    +
    +
      {#each $notifications as notification (notification.id)} { + y = 0; + isOpen = !isOpen; + if (browser) { + if (isOpen) { + document.body.classList.add('u-overflow-hidden'); + } else { + document.body.classList.remove('u-overflow-hidden'); + } + } + }; - +
      diff --git a/src/routes/console/__layout.svelte b/src/routes/console/__layout.svelte index c1edbe0df..d31f50a6b 100644 --- a/src/routes/console/__layout.svelte +++ b/src/routes/console/__layout.svelte @@ -50,4 +50,6 @@