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) {
|
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();
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user