From fb516ea694647203e6ce2eadaa89fbfaf2c8fb44 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 09:58:34 -0700 Subject: [PATCH] refac: styling --- .../components/chat/Settings/Account.svelte | 185 ++++++++++-------- src/lib/components/icons/Plus.svelte | 15 ++ 2 files changed, 116 insertions(+), 84 deletions(-) create mode 100644 src/lib/components/icons/Plus.svelte diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index 916cd811a..e0239fb0b 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -8,6 +8,8 @@ import UpdatePassword from './Account/UpdatePassword.svelte'; import { getGravatarUrl } from '$lib/apis/utils'; import { copyToClipboard } from '$lib/utils'; + import Plus from '$lib/components/icons/Plus.svelte'; + import Tooltip from '$lib/components/common/Tooltip.svelte'; const i18n = getContext('i18n'); @@ -199,14 +201,14 @@
-
- + {#if APIKey} +
+ + + +
-
- - - + + {:else} + + + + Create new secret key + {/if}
diff --git a/src/lib/components/icons/Plus.svelte b/src/lib/components/icons/Plus.svelte new file mode 100644 index 000000000..bcfe4a8b2 --- /dev/null +++ b/src/lib/components/icons/Plus.svelte @@ -0,0 +1,15 @@ + + + + +