From ea5b50cf0a9411354380619ab641549bb265cc62 Mon Sep 17 00:00:00 2001 From: codytseng Date: Sat, 12 Apr 2025 00:00:45 +0800 Subject: [PATCH] feat: select-none --- src/components/FavoriteRelaysSetting/index.tsx | 2 +- src/components/NoteOptions/RawEventDialog.tsx | 4 +++- src/components/RelayInfo/index.tsx | 12 ++++++------ src/components/ui/textarea.tsx | 2 +- src/index.css | 1 + src/pages/secondary/NotePage/index.tsx | 8 +++++++- src/pages/secondary/ProfilePage/index.tsx | 11 +++++++---- 7 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/components/FavoriteRelaysSetting/index.tsx b/src/components/FavoriteRelaysSetting/index.tsx index 8618ef62..ffbc66b4 100644 --- a/src/components/FavoriteRelaysSetting/index.tsx +++ b/src/components/FavoriteRelaysSetting/index.tsx @@ -18,7 +18,7 @@ export default function FavoriteRelaysSetting() {
-
+
{t('Relay sets')}
diff --git a/src/components/NoteOptions/RawEventDialog.tsx b/src/components/NoteOptions/RawEventDialog.tsx index e34bf7c8..0f31900a 100644 --- a/src/components/NoteOptions/RawEventDialog.tsx +++ b/src/components/NoteOptions/RawEventDialog.tsx @@ -25,7 +25,9 @@ export default function RawEventDialog({ -
{JSON.stringify(event, null, 2)}
+
+            {JSON.stringify(event, null, 2)}
+          
diff --git a/src/components/RelayInfo/index.tsx b/src/components/RelayInfo/index.tsx index e6048ff3..ac9eccfa 100644 --- a/src/components/RelayInfo/index.tsx +++ b/src/components/RelayInfo/index.tsx @@ -20,7 +20,7 @@ export default function RelayInfo({ url }: { url: string }) {
-
+
{relayInfo.name || relayInfo.shortUrl}
@@ -33,7 +33,7 @@ export default function RelayInfo({ url }: { url: string }) {
)} {relayInfo.description && ( -
+
{relayInfo.description}
)} @@ -67,7 +67,7 @@ export default function RelayInfo({ url }: { url: string }) { {relayInfo.payments_url} @@ -86,7 +86,7 @@ export default function RelayInfo({ url }: { url: string }) { {relayInfo.contact && (
{t('Contact')}
-
+
{relayInfo.contact}
@@ -95,7 +95,7 @@ export default function RelayInfo({ url }: { url: string }) { {relayInfo.software && (
{t('Software')}
-
+
{formatSoftware(relayInfo.software)}
@@ -104,7 +104,7 @@ export default function RelayInfo({ url }: { url: string }) { {relayInfo.version && (
{t('Version')}
-
+
{relayInfo.version}
diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index a681c174..38e0de0c 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -7,7 +7,7 @@ const Textarea = React.forwardRef )} - +
{event.kind === kinds.ShortTextNote ? ( diff --git a/src/pages/secondary/ProfilePage/index.tsx b/src/pages/secondary/ProfilePage/index.tsx index d43e2cdb..9e701572 100644 --- a/src/pages/secondary/ProfilePage/index.tsx +++ b/src/pages/secondary/ProfilePage/index.tsx @@ -98,7 +98,7 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number },
-
{username}
+
{username}
{isFollowingYou && (
{t('Follows you')} @@ -107,7 +107,7 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number },
{lightningAddress && ( -
+
{lightningAddress}
@@ -116,9 +116,12 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number },
- + {website && ( -
+