Fix various small issues

This commit is contained in:
Bojan Mojsilovic 2024-02-06 17:19:10 +01:00
parent 025255af67
commit dea59cf2bd
3 changed files with 5 additions and 5 deletions

View File

@ -623,9 +623,9 @@ const EditBox: Component<{
if (account) { if (account) {
let tags = referencesToTags(messageToSend); let tags = referencesToTags(messageToSend);
const rep = props.replyToNote;
if (props.replyToNote) { if (rep) {
const rep = props.replyToNote;
const rootTag = rep.post.tags.find(t => t[0] === 'e' && t[3] === 'root'); const rootTag = rep.post.tags.find(t => t[0] === 'e' && t[3] === 'root');
// If the note has a root tag, that meens it is not a root note itself // If the note has a root tag, that meens it is not a root note itself
@ -664,7 +664,7 @@ const EditBox: Component<{
toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess)); toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess));
props.onSuccess && props.onSuccess({ success, reasons, note }); props.onSuccess && props.onSuccess({ success, reasons, note });
setIsPostingInProgress(false); setIsPostingInProgress(false);
saveNoteDraft(account.publicKey, '', props.replyToNote?.post.id) saveNoteDraft(account.publicKey, '', rep?.post.noteId)
clearEditor(); clearEditor();
} }
unsub(); unsub();

View File

@ -75,7 +75,7 @@
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
margin-top: 4px; margin-top: 4px;
margin-bottom: 16px; margin-bottom: 12px;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }

View File

@ -25,7 +25,7 @@
font-weight: 400; font-weight: 400;
line-height: 24px; line-height: 24px;
width: 100%; width: 100%;
margin-bottom: 17px; margin-bottom: 12px;
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;