From 3bac5e0453eb660102f5491d2b09fe68a819f412 Mon Sep 17 00:00:00 2001 From: afn <47723802+afnzmn@users.noreply.github.com> Date: Tue, 25 Oct 2022 21:38:00 -0400 Subject: [PATCH] fix: patch cell target pkg stuff + refactoring --- .../components/atoms/ContributorPerson.svelte | 35 ++++++------------- .../molecules/ContributorHost.svelte | 8 ++--- src/lib/components/molecules/PatchCell.svelte | 26 +++++++++----- src/routes/+layout.svelte | 22 +++++++----- src/routes/+page.svelte | 14 ++++---- src/routes/credits/+page.svelte | 26 +++++++------- src/routes/docs/+page.svelte | 9 ++--- src/routes/patches/+page.svelte | 33 +++++------------ 8 files changed, 82 insertions(+), 91 deletions(-) diff --git a/src/lib/components/atoms/ContributorPerson.svelte b/src/lib/components/atoms/ContributorPerson.svelte index f586483..e11e0b2 100644 --- a/src/lib/components/atoms/ContributorPerson.svelte +++ b/src/lib/components/atoms/ContributorPerson.svelte @@ -6,9 +6,7 @@ - +

{name}

@@ -16,32 +14,17 @@ a { color: var(--white); text-decoration: none; - text-align: center; - padding: 0.5rem 0.5rem; + padding: 0.5rem; width: 100%; transition: all 0.3s var(--bezier-one); - border: 1px solid var(--grey-three); border-radius: 4px; - display:flex; + display: flex; gap: 1rem; align-items: center; - background-color: var(--grey-six) + background-color: var(--grey-six); + border: 1px solid var(--grey-three); } - button { - color: var(--white); - border-radius: 50%; - overflow: hidden; - border: 0; - height: 30px; - width: 30px; - min-width: 30px; - min-height: 30px; - cursor: pointer; - background-color: transparent; - transition: transform 0.4s var(--bezier-one); - user-select: none; - } a:hover { background-color: var(--accent-color); @@ -59,7 +42,11 @@ } img { - height: 100%; - width: 100%; + border-radius: 50%; + height: 30px; + width: 30px; + background-color: var(--grey-two); + transition: transform 0.4s var(--bezier-one); + user-select: none; } diff --git a/src/lib/components/molecules/ContributorHost.svelte b/src/lib/components/molecules/ContributorHost.svelte index 434d63b..4698a6d 100644 --- a/src/lib/components/molecules/ContributorHost.svelte +++ b/src/lib/components/molecules/ContributorHost.svelte @@ -21,12 +21,12 @@ -
+
- {#each contribs as contrib} - {#if !usersIwantToExplodeSoBadly.includes(contrib.login)} - + {#each contribs as { login, avatar_url, html_url }} + {#if !usersIwantToExplodeSoBadly.includes(login)} + {/if} {/each}
diff --git a/src/lib/components/molecules/PatchCell.svelte b/src/lib/components/molecules/PatchCell.svelte index 44e4e85..6b6a55d 100644 --- a/src/lib/components/molecules/PatchCell.svelte +++ b/src/lib/components/molecules/PatchCell.svelte @@ -38,15 +38,21 @@
{#each patch.compatiblePackages as pkg, i} {#if current === false} -

📦 {pkg.name}

- {/if} - - {#if i < pkg.versions.length - 1} -

- 🎯 {pkg.versions.slice(-1)[0] || 'Any'} -

+ +

📦 {pkg.name}

+
{/if} {/each} + + {#if patch.compatiblePackages[0].versions.length} +

+ 🎯 {patch.compatiblePackages[0].versions.slice(-1)} +

+ {/if}

🧩 {patch.version}

@@ -88,6 +94,10 @@ display: flex; } + a { + text-decoration: none; + } + .info-container { display: flex; flex-wrap: wrap; @@ -115,7 +125,7 @@ transition: all 2s var(--bezier-one); background-color: var(--grey-six); padding: 1.5rem; - border-radius: 12px; + border-radius: 8px; } .patch-container:active { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 18d2623..d129656 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -22,18 +22,22 @@ - - - - - - + + + + + + ReVanced - + + {#if $show_loading_animation} - + {:else} - + {/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 738bceb..0b61887 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,13 +5,15 @@ import Wave from '$lib/components/atoms/Wave.svelte'; -
-
- -
+
+
+
+ +
+
-
- + +