From 4fc156b744db1ed39e2508477ca200701730042e Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Sat, 4 Nov 2023 00:22:24 +1100 Subject: [PATCH] quick fix image upload sizing --- client/src/components/PostCard/NewThreadCard.tsx | 16 ++++++++-------- client/src/components/Thread/ThreadPost.tsx | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/client/src/components/PostCard/NewThreadCard.tsx b/client/src/components/PostCard/NewThreadCard.tsx index f23e0cf..6a3b14c 100644 --- a/client/src/components/PostCard/NewThreadCard.tsx +++ b/client/src/components/PostCard/NewThreadCard.tsx @@ -127,6 +127,14 @@ const NewThreadCard: React.FC = () => { value={comment} onChange={(e) => setComment(e.target.value)} /> +
+ {file !== "" && ( + + )} + {renderMedia(file)} +
@@ -137,14 +145,6 @@ const NewThreadCard: React.FC = () => {

-
- {file !== "" && ( - - )} - {renderMedia(file)} -
setComment(e.target.value)} />
+
+ {file !== "" && ( + + )} + {renderMedia(file)} +
@@ -152,14 +160,6 @@ const ThreadPost = ({ OPEvent, state, type }: { OPEvent: NostrEvent, state: Bool

-
- {file !== "" && ( - - )} - {renderMedia(file)} -