diff --git a/__snapshots__/users-header--extra-small.png b/__snapshots__/users-header--extra-small.png new file mode 100644 index 0000000..21d93ee Binary files /dev/null and b/__snapshots__/users-header--extra-small.png differ diff --git a/__snapshots__/users-header--inline-extra-small-loading.png b/__snapshots__/users-header--inline-extra-small-loading.png new file mode 100644 index 0000000..257f7c4 Binary files /dev/null and b/__snapshots__/users-header--inline-extra-small-loading.png differ diff --git a/__snapshots__/users-header--inline-extra-small.png b/__snapshots__/users-header--inline-extra-small.png new file mode 100644 index 0000000..1eb8d8f Binary files /dev/null and b/__snapshots__/users-header--inline-extra-small.png differ diff --git a/__snapshots__/users-header.test.js.snap b/__snapshots__/users-header.test.js.snap index 0e15932..13b1ae3 100644 --- a/__snapshots__/users-header.test.js.snap +++ b/__snapshots__/users-header.test.js.snap @@ -36,6 +36,57 @@ exports[`Users/Header displayName without name smoke-test 1`] = ` `; +exports[`Users/Header extra small smoke-test 1`] = ` +
+
+
+
+ DanConwayDev +
+
+
+ DanConwayDev +
+
+
+`; + +exports[`Users/Header inline extra small loading smoke-test 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`Users/Header inline extra small smoke-test 1`] = ` +
+
+
+
+ DanConwayDev +
+
+
+ DanConwayDev +
+
+
+`; + exports[`Users/Header inline loading smoke-test 1`] = `
diff --git a/src/lib/components/users/UserHeader.stories.svelte b/src/lib/components/users/UserHeader.stories.svelte index 55749d4..d5f9f25 100644 --- a/src/lib/components/users/UserHeader.stories.svelte +++ b/src/lib/components/users/UserHeader.stories.svelte @@ -34,6 +34,16 @@ }} /> + + + + + + diff --git a/src/lib/components/users/UserHeader.svelte b/src/lib/components/users/UserHeader.svelte index ed35980..ba88802 100644 --- a/src/lib/components/users/UserHeader.svelte +++ b/src/lib/components/users/UserHeader.svelte @@ -8,7 +8,7 @@ } export let inline = false - export let size: 'sm' | 'md' = 'md' + export let size: 'xs' | 'sm' | 'md' = 'md' $: ({ profile, loading } = user) $: display_name = getName(user) @@ -17,6 +17,7 @@
{:else} {display_name}