diff --git a/__snapshots__/repo-header--short-name.png b/__snapshots__/repo-header--short-name.png index 9871681..7079bd1 100644 Binary files a/__snapshots__/repo-header--short-name.png and b/__snapshots__/repo-header--short-name.png differ diff --git a/__snapshots__/repo-summary-card--loading.png b/__snapshots__/repo-summary-card--loading.png index 98a5f86..9e6081d 100644 Binary files a/__snapshots__/repo-summary-card--loading.png and b/__snapshots__/repo-summary-card--loading.png differ diff --git a/__snapshots__/repo-summary-card--long-and-no-spaces.png b/__snapshots__/repo-summary-card--long-and-no-spaces.png index 8740d35..293e8b5 100644 Binary files a/__snapshots__/repo-summary-card--long-and-no-spaces.png and b/__snapshots__/repo-summary-card--long-and-no-spaces.png differ diff --git a/__snapshots__/repo-summary-card--long-details.png b/__snapshots__/repo-summary-card--long-details.png index 11537d0..68625fb 100644 Binary files a/__snapshots__/repo-summary-card--long-details.png and b/__snapshots__/repo-summary-card--long-details.png differ diff --git a/__snapshots__/repo-summary-card--no-details.png b/__snapshots__/repo-summary-card--no-details.png index bfc78ff..d83dd2d 100644 Binary files a/__snapshots__/repo-summary-card--no-details.png and b/__snapshots__/repo-summary-card--no-details.png differ diff --git a/__snapshots__/repo-summary-card--short-details.png b/__snapshots__/repo-summary-card--short-details.png index f7d92c1..748efcc 100644 Binary files a/__snapshots__/repo-summary-card--short-details.png and b/__snapshots__/repo-summary-card--short-details.png differ diff --git a/__snapshots__/repo-summary-card.test.js.snap b/__snapshots__/repo-summary-card.test.js.snap index 067747c..14c812f 100644 --- a/__snapshots__/repo-summary-card.test.js.snap +++ b/__snapshots__/repo-summary-card.test.js.snap @@ -1,73 +1,61 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Repo/Summary/Card Long Details smoke-test 1`] = ` - -
-

- Long Name that goes on and on and on and on a... -

-

- Lorem ipsum dolor sit amet, consectetur adipi... -

-
-
+
+ + Long Name that goes on and on and on and on a... + +

+ Lorem ipsum dolor sit amet, consectetur adipi... +

+
`; exports[`Repo/Summary/Card Long and No Spaces smoke-test 1`] = ` - -
-

- LongNameLongNameLongNameLongNameLongNameLongN... -

-

- LoremipsumLoremipsumLoremipsumLoremipsumLorem... -

-
-
+
+ + LongNameLongNameLongNameLongNameLongNameLongN... + +

+ LoremipsumLoremipsumLoremipsumLoremipsumLorem... +

+
`; exports[`Repo/Summary/Card No Details smoke-test 1`] = ` - -
-

- Untitled -

-

-

-
-
+
+ + Untitled + +

+

+
`; exports[`Repo/Summary/Card Short Details smoke-test 1`] = ` - -
-

- Short Name -

-

- short description -

-
-
+
+ + Short Name + +

+ short description +

+
`; exports[`Repo/Summary/Card loading smoke-test 1`] = ` -
-
-
-
-
-
-
-
+
+
+
+
`; diff --git a/__snapshots__/repo-summary-list--default.png b/__snapshots__/repo-summary-list--default.png index cb26bc0..b72a666 100644 Binary files a/__snapshots__/repo-summary-list--default.png and b/__snapshots__/repo-summary-list--default.png differ diff --git a/__snapshots__/repo-summary-list--empty.png b/__snapshots__/repo-summary-list--empty.png index f315632..6ae02ea 100644 Binary files a/__snapshots__/repo-summary-list--empty.png and b/__snapshots__/repo-summary-list--empty.png differ diff --git a/__snapshots__/repo-summary-list--loading.png b/__snapshots__/repo-summary-list--loading.png index cfc15ac..c6f4613 100644 Binary files a/__snapshots__/repo-summary-list--loading.png and b/__snapshots__/repo-summary-list--loading.png differ diff --git a/__snapshots__/repo-summary-list--no-title.png b/__snapshots__/repo-summary-list--no-title.png index fd10298..a293680 100644 Binary files a/__snapshots__/repo-summary-list--no-title.png and b/__snapshots__/repo-summary-list--no-title.png differ diff --git a/__snapshots__/repo-summary-list--partially-loaded.png b/__snapshots__/repo-summary-list--partially-loaded.png index 660353f..7370049 100644 Binary files a/__snapshots__/repo-summary-list--partially-loaded.png and b/__snapshots__/repo-summary-list--partially-loaded.png differ diff --git a/__snapshots__/repo-summary-list.test.js.snap b/__snapshots__/repo-summary-list.test.js.snap index 27bc7a9..5723972 100644 --- a/__snapshots__/repo-summary-list.test.js.snap +++ b/__snapshots__/repo-summary-list.test.js.snap @@ -1,54 +1,50 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Repo/Summary/List Default smoke-test 1`] = ` -
-
+
+

Featured Repositories

- - - - -
-

+

-

+ +

Lorem ipsum dolor sit amet, consectetur adipi...

- - -
-

+

-

+ +

LoremipsumLoremipsumLoremipsumLoremipsumLorem...

- +
`; exports[`Repo/Summary/List Empty smoke-test 1`] = ` -
-
+
+

Latest

@@ -60,39 +56,29 @@ exports[`Repo/Summary/List Empty smoke-test 1`] = ` `; exports[`Repo/Summary/List Loading smoke-test 1`] = ` -
-
+
+

Latest

-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
@@ -100,72 +86,64 @@ exports[`Repo/Summary/List Loading smoke-test 1`] = ` `; exports[`Repo/Summary/List No Title smoke-test 1`] = ` -
`; exports[`Repo/Summary/List Partially Loaded smoke-test 1`] = ` -
-
+
+

Latest

- - - - -
-

+

-

+ +

Lorem ipsum dolor sit amet, consectetur adipi...

- -
-
-
-
-
-
-
+
+
+
+
diff --git a/src/lib/components/RepoSummaryCard.svelte b/src/lib/components/RepoSummaryCard.svelte index 2cc3b2d..812dd1e 100644 --- a/src/lib/components/RepoSummaryCard.svelte +++ b/src/lib/components/RepoSummaryCard.svelte @@ -14,8 +14,6 @@ -{#if loading} -
-
-
-
-
-
-
-
-{:else} - -
-

{short_name}

-

{short_descrption}

-
-
-{/if} - - +
+ {#if loading} +
+
+ {:else} + {short_name} +

{short_descrption}

+ {/if} +
diff --git a/src/lib/components/ReposSummaryList.svelte b/src/lib/components/ReposSummaryList.svelte index c4e7fb0..20b84cd 100644 --- a/src/lib/components/ReposSummaryList.svelte +++ b/src/lib/components/ReposSummaryList.svelte @@ -11,23 +11,26 @@ export let loading: boolean = false; -
+
{#if title.length > 0} -
+

{title}

{/if} {#if repos.length == 0 && !loading}

None

- {/if} - {#each repos as { name, description, repo_id }} - - {/each} - {#if loading} - - {#if repos.length == 0} - - - {/if} + {:else} +
+ {#each repos as { name, description, repo_id }} + + {/each} + {#if loading} + + {#if repos.length == 0} + + + {/if} + {/if} +
{/if}
diff --git a/src/lib/wrappers/ReposRecent.svelte b/src/lib/wrappers/ReposRecent.svelte index 177f767..5b215a4 100644 --- a/src/lib/wrappers/ReposRecent.svelte +++ b/src/lib/wrappers/ReposRecent.svelte @@ -5,7 +5,7 @@ import { ndk } from "$lib/stores/ndk"; import { onDestroy } from "svelte"; - export let limit: number = 5; + export let limit: number = 10; let repos: Args[] = []; let loading: boolean = true;