This commit is contained in:
Ren Amamiya
2023-10-09 15:17:15 +07:00
parent 140b8a47bf
commit 8930300fb5
45 changed files with 606 additions and 740 deletions

View File

@@ -67,7 +67,7 @@ export function GlobalArticlesWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{data.map((item) => renderItem(item))}
<div className="h-16" />
</VList>

View File

@@ -69,7 +69,7 @@ export function GlobalFilesWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{data.map((item) => renderItem(item))}
<div className="h-16" />
</VList>

View File

@@ -99,7 +99,7 @@ export function GlobalHashtagWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{data.map((item) => renderItem(item))}
<div className="h-16" />
</VList>

View File

@@ -69,7 +69,7 @@ export function LocalArticlesWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{dbEvents.map((item) => renderItem(item))}
<div className="flex items-center justify-center px-3 py-1.5">
{dbEvents.length > 0 ? (

View File

@@ -105,7 +105,7 @@ export function LocalFeedsWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{dbEvents.map((item) => renderItem(item))}
<div className="flex items-center justify-center px-3 py-1.5">
{dbEvents.length > 0 ? (

View File

@@ -69,7 +69,7 @@ export function LocalFilesWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{dbEvents.map((item) => renderItem(item))}
<div className="flex items-center justify-center px-3 py-1.5">
{dbEvents.length > 0 ? (

View File

@@ -104,7 +104,7 @@ export function LocalFollowsWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{dbEvents.map((item) => renderItem(item))}
<div className="flex items-center justify-center px-3 py-1.5">
{dbEvents.length > 0 ? (

View File

@@ -113,7 +113,7 @@ export function LocalNetworkWidget() {
) : dbEvents.length === 0 ? (
<EventLoader firstTime={true} />
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{!isFetched ? <EventLoader firstTime={false} /> : null}
{dbEvents.map((item) => renderItem(item))}
<div className="flex items-center justify-center px-3 py-1.5">

View File

@@ -44,7 +44,7 @@ export function LocalThreadWidget({ params }: { params: Widget }) {
return (
<WidgetWrapper>
<TitleBar id={params.id} title={params.title} />
<div className="scrollbar-hide h-full overflow-y-auto">
<div className="scrollbar-none h-full overflow-y-auto">
{status === 'loading' ? (
<div className="px-3 py-1.5">
<div className="rounded-xl bg-zinc-100 px-3 py-3 dark:bg-zinc-900">

View File

@@ -81,7 +81,7 @@ export function LocalUserWidget({ params }: { params: Widget }) {
return (
<WidgetWrapper>
<TitleBar id={params.id} title={params.title} />
<div className="scrollbar-hide h-full overflow-y-auto">
<div className="scrollbar-none h-full overflow-y-auto">
<div className="px-3 pt-1.5">
<UserProfile pubkey={params.content} />
</div>

View File

@@ -57,7 +57,7 @@ export function TrendingAccountsWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{data.map((item: Profile) => (
<NostrBandUserProfile key={item.pubkey} data={item} />
))}

View File

@@ -58,7 +58,7 @@ export function TrendingNotesWidget({ params }: { params: Widget }) {
</div>
</div>
) : (
<VList className="scrollbar-hide h-full">
<VList className="scrollbar-none h-full">
{data.map((item) => (
<NoteWrapper key={item.event.id} event={item.event}>
<TextNote content={item.event.content} />

View File

@@ -24,7 +24,7 @@ export function LearnNostrWidget({ params }: { params: Widget }) {
return (
<WidgetWrapper>
<TitleBar id={params.id} title="The Joy of Nostr" />
<div className="scrollbar-hide h-full overflow-y-auto px-3 pb-20">
<div className="scrollbar-none h-full overflow-y-auto px-3 pb-20">
{resources.map((resource, index) => (
<div key={index} className="mb-6">
<h3 className="mb-2 text-sm font-medium text-zinc-500 dark:text-zinc-400">

View File

@@ -56,7 +56,7 @@ export function XfeedsWidget({ params }: { params: Widget }) {
className="relative h-11 w-full rounded-lg bg-zinc-200 px-3 py-1 text-zinc-900 !outline-none placeholder:text-zinc-500 dark:bg-zinc-800 dark:text-zinc-100 dark:placeholder:text-zinc-300"
/>
</div>
<div className="scrollbar-hide flex h-[500px] w-full flex-col overflow-y-auto rounded-lg bg-zinc-200 py-2 dark:bg-zinc-800">
<div className="scrollbar-none flex h-[500px] w-full flex-col overflow-y-auto rounded-lg bg-zinc-200 py-2 dark:bg-zinc-800">
{db.account.network.map((item: string) => (
<button
key={item}