mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-13 12:38:02 +00:00
Fix mobile note archive action
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user