))}
@@ -41,11 +42,27 @@ export function WidgetList({ params }: { params: Widget }) {
);
return (
-
+
{DefaultWidgets.map((row: WidgetGroup) => renderItem(row))}
+
+
+
+ Build your own widget{' '}
+
+
+ Coming soon
+
+
+
+
+
);
}
diff --git a/src/shared/composer/composer.tsx b/src/shared/composer/composer.tsx
index 107f6dbf..c23ca261 100644
--- a/src/shared/composer/composer.tsx
+++ b/src/shared/composer/composer.tsx
@@ -125,7 +125,7 @@ export function Composer() {
autoCapitalize="off"
className={twMerge(
'scrollbar-hide markdown max-h-[500px] overflow-y-auto break-all pr-2 outline-none',
- expand ? 'min-h-[500px]' : 'min-h-[120px]'
+ expand ? 'min-h-[500px]' : reply.id ? 'min-h-min' : 'min-h-[120px]'
)}
/>
{reply.id && (
diff --git a/src/stores/widgets.ts b/src/stores/widgets.ts
index f59a5978..1d2c8034 100644
--- a/src/stores/widgets.ts
+++ b/src/stores/widgets.ts
@@ -46,18 +46,22 @@ export const DefaultWidgets = [
{
kind: WidgetKinds.tmp.xfeed,
title: 'Group feeds',
+ description: 'All posts from specific people you want to keep up with',
},
{
kind: WidgetKinds.local.files,
title: 'Files',
+ description: 'All files shared by people in your network',
},
{
kind: WidgetKinds.local.articles,
title: 'Articles',
+ description: 'All articles shared by people in your network',
},
{
kind: WidgetKinds.local.follows,
title: 'Follows',
+ description: 'All posts from people you are following',
},
],
},
@@ -67,27 +71,32 @@ export const DefaultWidgets = [
{
kind: WidgetKinds.tmp.xhashtag,
title: 'Hashtag',
+ description: 'All posts have a specific hashtag',
},
{
kind: WidgetKinds.global.files,
title: 'Files',
+ description: 'All files shared by people in your current relay set',
},
{
kind: WidgetKinds.global.articles,
title: 'Articles',
+ description: 'All articles shared by people in your current relay set',
},
],
},
{
- title: 'Trending (nostr.band)',
+ title: 'nostr.band',
data: [
{
kind: WidgetKinds.nostrBand.trendingAccounts,
title: 'Accounts',
+ description: 'Trending accounts from the last 24 hours',
},
{
kind: WidgetKinds.nostrBand.trendingNotes,
title: 'Notes',
+ description: 'Trending notes from the last 24 hours',
},
],
},
diff --git a/src/utils/types.d.ts b/src/utils/types.d.ts
index 80543cda..ed6d414b 100644
--- a/src/utils/types.d.ts
+++ b/src/utils/types.d.ts
@@ -44,6 +44,7 @@ export interface WidgetGroup {
export interface WidgetGroupItem {
title: string;
+ description: string;
kind: number;
}