From 088fe7243a19dc87bb5120a7ac41fb35ec1795f0 Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Sun, 12 Nov 2023 18:13:35 +1100 Subject: [PATCH] some styling stuff --- client/src/components/Forms/PostFormCard.tsx | 26 +++++++++----- client/src/components/Modals/Card.tsx | 36 +++++++++---------- .../src/components/Modals/CardContainer.tsx | 2 +- .../Modals/CardModals/QuoteEmbed.tsx | 10 +++--- .../Modals/CardModals/TextModal.tsx | 6 +++- client/src/utils/FileUpload.tsx | 1 + 6 files changed, 48 insertions(+), 33 deletions(-) diff --git a/client/src/components/Forms/PostFormCard.tsx b/client/src/components/Forms/PostFormCard.tsx index cb9ca6b..ad5d749 100644 --- a/client/src/components/Forms/PostFormCard.tsx +++ b/client/src/components/Forms/PostFormCard.tsx @@ -50,10 +50,10 @@ const tagMapping = { 'Quote': ['q', 'p'] }; -const NewNoteCard = ({ - refEvent, - tagType - }: FormProps) => { +const NewNoteCard = ({ + refEvent, + tagType +}: FormProps) => { const [comment, setComment] = useState(""); const [file, setFile] = useState(""); const [sk, setSk] = useState(generatePrivateKey()); @@ -67,7 +67,8 @@ const NewNoteCard = ({ const [difficulty, setDifficulty] = useState( localStorage.getItem("difficulty") || "21" ); - + const [fileSizeError, setFileSizeError] = useState(false); + const [uploadingFile, setUploadingFile] = useState(false); const [doingWorkProp, setDoingWorkProp] = useState(false); @@ -83,7 +84,7 @@ const NewNoteCard = ({ if (tags) { tags.forEach(tag => unsigned.tags.push([tag, refEvent[tag === 'p' ? 'pubkey' : 'id']])); } - + if (tagType === 'Quote') { setComment(comment + ' nostr:' + nip19.noteEncode(refEvent.id)); } @@ -145,12 +146,12 @@ const NewNoteCard = ({ setDoingWorkProp(true); }} > - +