diff --git a/src/app.css b/src/app.css index d46f322fd..c98acb252 100644 --- a/src/app.css +++ b/src/app.css @@ -112,8 +112,28 @@ @apply overflow-hidden text-ellipsis; } +.content-padding-x { + @apply px-4 sm:px-8 md:px-12; +} + +.content-padding-t { + @apply pt-4 sm:pt-8 md:pt-12; +} + +.content-padding-b { + @apply pb-4 sm:pb-8 md:pb-12; +} + +.content-padding-y { + @apply content-padding-t content-padding-b; +} + +.content-sizing { + @apply m-auto w-full max-w-3xl; +} + .content { - @apply m-auto w-full max-w-3xl p-4 sm:p-8 md:p-12; + @apply content-sizing content-padding-x content-padding-y; } .heading { diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index 1650e14c5..a4591cae0 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -70,7 +70,7 @@
-
+
diff --git a/src/lib/components/ContentSearch.svelte b/src/lib/components/ContentSearch.svelte new file mode 100644 index 000000000..fcac563ef --- /dev/null +++ b/src/lib/components/ContentSearch.svelte @@ -0,0 +1,12 @@ +
+
+
+ +
+
+
+
+ +
+
+
diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index dc825528e..f16373db1 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -5,6 +5,7 @@ import {pubkey, subscribe} from "@welshman/app" import Icon from "@lib/components/Icon.svelte" import Button from "@lib/components/Button.svelte" + import ContentSearch from "@lib/components/ContentSearch.svelte" import ChatItem from "@app/components/ChatItem.svelte" import ChatStart from "@app/components/ChatStart.svelte" import {chatSearch, pullConservatively} from "@app/state" @@ -42,8 +43,9 @@

-
-
+ + +
+
{#each chats as { id, pubkeys, messages } (id)} {:else} @@ -64,4 +67,5 @@
{/each} -
+
+ diff --git a/src/routes/people/+page.svelte b/src/routes/people/+page.svelte index e5dbc89b3..42bc0da9b 100644 --- a/src/routes/people/+page.svelte +++ b/src/routes/people/+page.svelte @@ -4,6 +4,7 @@ import {profileSearch} from "@welshman/app" import Icon from "@lib/components/Icon.svelte" import Page from "@lib/components/Page.svelte" + import ContentSearch from "@lib/components/ContentSearch.svelte" import PeopleItem from "@app/components/PeopleItem.svelte" import {getDefaultPubkeys} from "@app/state" @@ -16,6 +17,7 @@ $: pubkeys = term ? $profileSearch.searchValues(term) : defaultPubkeys onMount(() => { + console.log(element) const scroller = createScroller({ element, onScroll: () => { @@ -28,14 +30,16 @@ -
-
+
+ {#each pubkeys.slice(0, limit) as pubkey (pubkey)} + + {/each} +
+