From ed8cebf36b36d82214d4b9ef6842bdf5204e103f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 1 Aug 2026 19:14:06 +0300 Subject: [PATCH 1/2] fix drop indicator alignment --- src/components/post_status_form/post_status_form.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/post_status_form/post_status_form.scss b/src/components/post_status_form/post_status_form.scss index 31da7b933..2b00dd1f4 100644 --- a/src/components/post_status_form/post_status_form.scss +++ b/src/components/post_status_form/post_status_form.scss @@ -272,8 +272,7 @@ .drop-indicator { position: absolute; - width: 100%; - height: 100%; + inset: 0; font-size: 5em; display: flex; align-items: center; From 2eb33e6e423d7418c9c735c5b38f74263c1f7b93 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 2 Aug 2026 22:37:34 +0300 Subject: [PATCH 2/2] fix drafts --- src/components/draft/draft.js | 4 +++- src/components/post_status_form/post_status_form.js | 13 ++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/draft/draft.js b/src/components/draft/draft.js index fac5790aa..b048782f1 100644 --- a/src/components/draft/draft.js +++ b/src/components/draft/draft.js @@ -42,7 +42,9 @@ const Draft = { if (this.draft.type === 'edit') { return { statusId: this.draft.refId } } else if (this.draft.type === 'reply') { - return { replyTo: this.draft.refId } + return { + repliedStatus: this.refStatus + } } else { return {} } diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index ab1696eec..162540c08 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -983,8 +983,15 @@ const PostStatusForm = { saveDraft() { if (!this.disableDraft && !this.saveInhibited) { if (this.safeToSaveDraft) { - return this.$store - .dispatch('addOrSaveDraft', { draft: this.newStatus }) + return this + .$store + .dispatch('addOrSaveDraft', { + draft: { + type: this.statusType, + refId: this.refId, + ...this.newStatus + } + }) .then((id) => { if (this.newStatus.id !== id) { this.newStatus.id = id @@ -1016,7 +1023,7 @@ const PostStatusForm = { } }, abandonDraft() { - return this.$store.dispatch('abandonDraft', { id: this.newStatus.id }) + return this.$store.dispatch('abandonDraft', { id: this.draftId }) }, getDraft() { const maybeDraft = this.$store.state.drafts.drafts[this.draftId]