From 2e65e1ee6c153f8d8e8fc76a75f363de29c1a252 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Dec 2025 16:32:30 -0600 Subject: [PATCH] Improve design of Nostr settings --- src/pages/NostrSettings.tsx | 62 +++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/src/pages/NostrSettings.tsx b/src/pages/NostrSettings.tsx index e37828a7..2c55f8cb 100644 --- a/src/pages/NostrSettings.tsx +++ b/src/pages/NostrSettings.tsx @@ -3,9 +3,9 @@ import { useTranslation } from 'react-i18next'; import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; import { Input } from '@/components/ui/input'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Skeleton } from '@/components/ui/skeleton'; +import { Separator } from '@/components/ui/separator'; import { RelayListManager } from '@/components/RelayListManager'; import SimpleLoginDialog from '@/components/auth/SimpleLoginDialog'; import SimpleSignupDialog from '@/components/auth/SimpleSignupDialog'; @@ -168,16 +168,14 @@ export function NostrSettings() { )} -
+
{/* Account Management */} - - - - - {t('nostrAccounts')} - - - +
+
+ +

{t('nostrAccounts')}

+
+
{isLoading ? (
{/* Loading skeleton for accounts */} @@ -287,31 +285,29 @@ export function NostrSettings() {
)} - - +
+
+ + {/* Relay Configuration */} - - - - - {t('relayConfiguration')} - - - - - - +
+
+ +

{t('relayConfiguration')}

+
+ +
+ + {/* Nostr Git Servers */} - - - - - {t('nostrGitServers')} - - - +
+
+ +

{t('nostrGitServers')}

+
+
{/* Server List */}
{config.ngitServers.map((hostname) => ( @@ -365,8 +361,8 @@ export function NostrSettings() { {t('addServer')}
- - +
+
{/* Login Dialog */}