Skip to content

Commit a0e6b7e

Browse files
Merge pull request #426 from appwrite/fix/console-design-review
refactor: small design review changes
2 parents e6000a2 + b4c3462 commit a0e6b7e

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

src/lib/layout/notifications.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,12 @@
2626
right: 24px;
2727
z-index: 1000;
2828
}
29+
30+
@media (max-width: 512px) {
31+
section {
32+
top: calc(var(--main-header-height) + 16px);
33+
right: 16px;
34+
left: 16px;
35+
}
36+
}
2937
</style>

src/lib/layout/unauthenticated.svelte

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@
146146
class:is-cloud={isCloud}
147147
style:--url={`url(${AppwriteCloudBg})`}
148148
style:--url-mobile={`url(${AppwriteCloudBgMobile})`}>
149-
<div
150-
class="container u-flex u-flex-vertical u-cross-center full-height"
151-
class:cloud-contents={isCloud}>
149+
<div class="container u-flex u-flex-vertical u-cross-center" class:cloud-contents={isCloud}>
152150
{#if isCloud}
153151
<a class="mobile-logo is-only-mobile" href={user ? '/console' : '/'}>
154152
<img
@@ -185,6 +183,10 @@
185183
</main>
186184

187185
<style lang="scss">
186+
:global(body) {
187+
--main-header-height: 0px !important;
188+
}
189+
188190
@media (prefers-reduced-motion: reduce) {
189191
main * {
190192
animation: none !important;
@@ -203,11 +205,6 @@
203205
}
204206
}
205207
206-
.full-height {
207-
block-size: 100vh;
208-
block-size: 100lvh;
209-
}
210-
211208
.cloud-section {
212209
background: var(--url);
213210
background-repeat: no-repeat;
@@ -282,7 +279,7 @@
282279
}
283280
284281
.mobile-logo {
285-
margin-block-start: 3rem;
282+
margin-block-start: 1rem;
286283
margin-block-end: 0.5rem;
287284
}
288285
@@ -345,6 +342,10 @@
345342
.cloud-section {
346343
display: none;
347344
}
345+
346+
section:last-child {
347+
padding-block-end: 32px;
348+
}
348349
}
349350
350351
@media (min-width: 530px) and (max-width: 767px) {

src/routes/card/[uid]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<div class="wrapper">
8585
<div class="card">
86-
<h3 class="heading-level-3 u-flex u-cross-center u-gap-8 no-text-select">
86+
<h3 class="heading-level-3 no-text-select">
8787
{title}
8888
<button class="confetti-btn" on:click={() => triggerConfettiKey++}>
8989
🎉
@@ -390,7 +390,7 @@
390390
.confetti-btn {
391391
animation: shake 2000ms ease infinite;
392392
user-select: none;
393-
display: grid;
393+
display: inline-flex;
394394
place-items: center;
395395
position: relative;
396396

0 commit comments

Comments
 (0)