mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix various small issues
This commit is contained in:
parent
025255af67
commit
dea59cf2bd
@ -623,9 +623,9 @@ const EditBox: Component<{
|
||||
|
||||
if (account) {
|
||||
let tags = referencesToTags(messageToSend);
|
||||
|
||||
if (props.replyToNote) {
|
||||
const rep = props.replyToNote;
|
||||
|
||||
if (rep) {
|
||||
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
|
||||
@ -664,7 +664,7 @@ const EditBox: Component<{
|
||||
toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess));
|
||||
props.onSuccess && props.onSuccess({ success, reasons, note });
|
||||
setIsPostingInProgress(false);
|
||||
saveNoteDraft(account.publicKey, '', props.replyToNote?.post.id)
|
||||
saveNoteDraft(account.publicKey, '', rep?.post.noteId)
|
||||
clearEditor();
|
||||
}
|
||||
unsub();
|
||||
|
@ -75,7 +75,7 @@
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 12px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
width: 100%;
|
||||
margin-bottom: 17px;
|
||||
margin-bottom: 12px;
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
|
Loading…
Reference in New Issue
Block a user