diff --git a/.changeset/config.json b/.changeset/config.json index 4cc7cbc..e4a66f0 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,11 +1,17 @@ { - "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", - "changelog": "@changesets/cli/changelog", - "commit": false, - "fixed": [[ "fractl-ui", "@fractl-ui/types", "x-*", "@fractl-ui/*"]], - "linked": [], - "access": "restricted", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} + "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [ + [ + "fractl-ui", + "@fractl-ui/types", + "x-*" + ] + ], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} \ No newline at end of file diff --git a/.changeset/sweet-bugs-itch.md b/.changeset/sweet-bugs-itch.md new file mode 100644 index 0000000..6db49e0 --- /dev/null +++ b/.changeset/sweet-bugs-itch.md @@ -0,0 +1,5 @@ +--- +"fractl-ui": patch +--- + +fixed hideen scrollbar on modal close diff --git a/packages/ui/src/components/AccountModal.svelte b/packages/ui/src/components/AccountModal.svelte index bc7d623..a727435 100644 --- a/packages/ui/src/components/AccountModal.svelte +++ b/packages/ui/src/components/AccountModal.svelte @@ -7,6 +7,7 @@ } from '@fractl-ui/types' import Zorb from './zorb/Zorb.svelte' import Modal from './Common/Modal.svelte' + import { onDestroy } from 'svelte' export let accountData: AccountData export let config: ConfigConnected @@ -19,8 +20,13 @@ $: symbol = accountData.balance?.symbol let open: () => void + let close: () => void + onDestroy(() => { + close() + }) const handleDisconnect = async (connector: Connector) => { + close() await config.disconnect(connector) } @@ -42,7 +48,7 @@ {name || truncate(address)} - +
{#if avatar} diff --git a/packages/ui/src/components/Common/Modal.svelte b/packages/ui/src/components/Common/Modal.svelte index 4d85e13..212b59c 100644 --- a/packages/ui/src/components/Common/Modal.svelte +++ b/packages/ui/src/components/Common/Modal.svelte @@ -1,6 +1,6 @@ diff --git a/packages/ui/src/components/ConnectModal/ConnectModal.svelte b/packages/ui/src/components/ConnectModal/ConnectModal.svelte index 2f4b5f9..d0a1d06 100644 --- a/packages/ui/src/components/ConnectModal/ConnectModal.svelte +++ b/packages/ui/src/components/ConnectModal/ConnectModal.svelte @@ -1,4 +1,6 @@