Skip to content

Commit d5a1a31

Browse files
Merge pull request #2606 from appwrite/feat-profiles-polishing
2 parents 9b88732 + f49270d commit d5a1a31

File tree

25 files changed

+285
-55
lines changed

25 files changed

+285
-55
lines changed

.github/workflows/dockerize-profiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
build-args: |
5151
"PUBLIC_CONSOLE_MODE=cloud"
5252
"PUBLIC_CONSOLE_PROFILE=studio"
53-
"PUBLIC_APPWRITE_MULTI_REGOIN=false"
53+
"PUBLIC_APPWRITE_MULTI_REGOIN=false"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"@ai-sdk/svelte": "^1.1.24",
2525
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@5ce6dc7",
2626
"@appwrite.io/pink-icons": "0.25.0",
27-
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@4472521",
27+
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@c255e7b",
2828
"@appwrite.io/pink-legacy": "^1.0.3",
29-
"@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@4472521",
29+
"@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@c255e7b",
3030
"@faker-js/faker": "^9.9.0",
3131
"@popperjs/core": "^2.11.8",
3232
"@sentry/sveltekit": "^8.55.0",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/navbar.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
beforeNavigate(() => (showAccountMenu = false));
121121
</script>
122122

123-
<Navbar.Base>
123+
<Navbar.Base --border-width-s="none">
124124
<div slot="left" class="left">
125125
<div class="only-mobile-tablet">
126126
<button
@@ -149,7 +149,7 @@
149149
</div>
150150
{/if}
151151
</div>
152-
<div slot="right" class="only-desktop">
152+
<div slot="right" class="only-desktop" style:--border-width-s="1px">
153153
<div class="right">
154154
<Layout.Stack gap="l" direction="row" alignItems="center">
155155
{#if isCloud && currentOrg?.showUpgrade}

src/lib/components/sidebar.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
class="sidebar"
120120
class:only-mobile-tablet={!project}
121121
class:no-transitions={$noWidthTransition}
122+
style:--border-width-s="0"
122123
style:--overlay-on-neutral={$app.themeInUse === 'dark'
123124
? 'var(--neutral-750)'
124125
: 'var(--neutral-100)'}>
172 KB
Loading

src/lib/layout/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export { default as Shell } from './shell.svelte';
99
export { default as WizardWithSteps } from './wizardWithSteps.svelte';
1010
export { default as WizardStep } from './wizardStep.svelte';
1111
export { default as Breadcrumbs } from './breadcrumbs.svelte';
12-
export { default as Unauthenticated } from './unauthenticated.svelte';
1312
export { default as Usage, type UsagePeriods } from './usage.svelte';
1413
export { default as UsageMultiple } from './usageMultiple.svelte';
1514
export { default as Activity } from './activity.svelte';

src/lib/layout/shell.svelte

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import { getSidebarState, isInDatabasesRoute, updateSidebarState } from '$lib/helpers/sidebar';
2020
import { isTabletViewport } from '$lib/stores/viewport';
2121
import { ProfileMode, resolvedProfile } from '$lib/profiles/index.svelte';
22+
import { app } from '$lib/stores/app';
2223
import { isFreePlan } from '$lib/helpers/billing';
2324
2425
export let showHeader = true;
@@ -154,7 +155,8 @@
154155
.getInitials({
155156
name: $user?.name,
156157
width: 80,
157-
height: 80
158+
height: 80,
159+
background: $app.themeInUse === 'dark' ? 'E4E4E7' : '6C6C71'
158160
})
159161
.toString(),
160162
@@ -254,13 +256,20 @@
254256
width: 100%;
255257
256258
margin-block-start: 48px;
257-
259+
border-radius: 16px;
260+
border: 1px solid var(--border-neutral);
261+
overflow: scroll;
262+
height: calc(100vh - 60px);
263+
max-width: calc(100vw - 76px);
264+
margin-top: 48px;
265+
margin-right: 10px;
266+
margin-left: 64px;
258267
@media (min-width: 1024px) {
259268
width: 100%;
260269
padding-left: 190px;
261270
262271
&.icons-content {
263-
padding-left: 54px;
272+
padding-left: 0px;
264273
}
265274
}
266275
}
@@ -276,7 +285,7 @@
276285
}
277286
278287
.main-content {
279-
min-height: calc(100vh - 48px);
288+
min-height: calc(100vh - 62px);
280289
}
281290
282291
.no-header {

src/lib/layout/unauthenticated.svelte renamed to src/lib/profiles/(unauthenticated)/appwrite.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { base } from '$app/paths';
2+
import { resolve } from '$app/paths';
33
import { AvatarInitials, Card } from '$lib/components';
44
import AppwriteLogoDark from '$lib/images/appwrite-logo-dark.svg';
55
import AppwriteLogoLight from '$lib/images/appwrite-logo-light.svg';
@@ -57,19 +57,19 @@
5757
class="logo u-flex u-gap-16"
5858
class:is-not-mobile={variation === 'default'}
5959
class:logo-variation={variation !== 'default'}>
60-
<a href={base}>
60+
<a href={resolve('/')}>
6161
{#if $app.themeInUse === 'dark'}
6262
<img
63-
src={AppwriteLogoDark}
63+
src={resolvedProfile.logo.src.dark}
6464
width="160"
6565
class="u-block u-only-dark"
66-
alt="{resolvedProfile.platform} Logo" />
66+
alt={resolvedProfile.logo.alt} />
6767
{:else}
6868
<img
69-
src={AppwriteLogoLight}
69+
src={resolvedProfile.logo.src.light}
7070
width="160"
7171
class="u-block u-only-light"
72-
alt="{resolvedProfile.platform} Logo" />
72+
alt={resolvedProfile.logo.alt} />
7373
{/if}
7474
</a>
7575
</div>
@@ -169,7 +169,7 @@
169169
</div>
170170
<div
171171
class="logo u-flex u-gap-16 u-margin-inline-auto is-only-mobile u-margin-block-start-32 mobile-logo">
172-
<a href={base}>
172+
<a href={resolve('/')}>
173173
{#if $app.themeInUse === 'dark'}
174174
<img
175175
src={AppwriteLogoDark}

0 commit comments

Comments
 (0)