From 31dbc6bec6a7c52c989ed5a8606777a26362b9f3 Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Sun, 28 Jun 2026 09:11:59 +0000 Subject: [PATCH] Fix mobile note archive action --- static/js/notes.js | 10 ++++++++-- static/style.css | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/static/js/notes.js b/static/js/notes.js index cf0a2c8a6..46d2a549e 100644 --- a/static/js/notes.js +++ b/static/js/notes.js @@ -4761,8 +4761,14 @@ function _openMobileFullscreenEdit(id, fromCard) { const headerActions = overlay.querySelector('.note-fullscreen-actions'); const archiveBtn = form.querySelector('.note-form-archive-btn'); const deleteBtn = form.querySelector('.note-form-delete-btn'); - if (headerActions && archiveBtn) headerActions.appendChild(archiveBtn); - if (headerActions && deleteBtn) headerActions.appendChild(deleteBtn); + if (headerActions && archiveBtn) { + archiveBtn.classList.remove('note-form-collapsible'); + headerActions.appendChild(archiveBtn); + } + if (headerActions && deleteBtn) { + deleteBtn.classList.remove('note-form-collapsible'); + headerActions.appendChild(deleteBtn); + } // The built-in archive/delete handlers re-render the notes grid but // leave THIS overlay sitting in front of it — looks like nothing // happened. Add follow-up listeners that close the overlay so the diff --git a/static/style.css b/static/style.css index 080750ad9..21d730b0e 100644 --- a/static/style.css +++ b/static/style.css @@ -33887,6 +33887,9 @@ body.notes-mobile-mode.notes-drag-mode .note-card-pin.active { .note-form-remind-btn { color: var(--accent, var(--red)) !important; } .note-form-remind-btn > svg { color: var(--accent, var(--red)); } .note-form-archive-btn { display: none !important; } + .note-fullscreen-actions .note-form-archive-btn { + display: inline-flex !important; + } .note-form-save.archive-mode { color: var(--accent, var(--red)) !important; border-color: color-mix(in srgb, var(--accent, var(--red)) 50%, transparent) !important;