mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-16 13:08: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 headerActions = overlay.querySelector('.note-fullscreen-actions');
|
||||||
const archiveBtn = form.querySelector('.note-form-archive-btn');
|
const archiveBtn = form.querySelector('.note-form-archive-btn');
|
||||||
const deleteBtn = form.querySelector('.note-form-delete-btn');
|
const deleteBtn = form.querySelector('.note-form-delete-btn');
|
||||||
if (headerActions && archiveBtn) headerActions.appendChild(archiveBtn);
|
if (headerActions && archiveBtn) {
|
||||||
if (headerActions && deleteBtn) headerActions.appendChild(deleteBtn);
|
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
|
// The built-in archive/delete handlers re-render the notes grid but
|
||||||
// leave THIS overlay sitting in front of it — looks like nothing
|
// leave THIS overlay sitting in front of it — looks like nothing
|
||||||
// happened. Add follow-up listeners that close the overlay so the
|
// happened. Add follow-up listeners that close the overlay so the
|
||||||
|
|||||||
@@ -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 { color: var(--accent, var(--red)) !important; }
|
||||||
.note-form-remind-btn > svg { color: var(--accent, var(--red)); }
|
.note-form-remind-btn > svg { color: var(--accent, var(--red)); }
|
||||||
.note-form-archive-btn { display: none !important; }
|
.note-form-archive-btn { display: none !important; }
|
||||||
|
.note-fullscreen-actions .note-form-archive-btn {
|
||||||
|
display: inline-flex !important;
|
||||||
|
}
|
||||||
.note-form-save.archive-mode {
|
.note-form-save.archive-mode {
|
||||||
color: var(--accent, var(--red)) !important;
|
color: var(--accent, var(--red)) !important;
|
||||||
border-color: color-mix(in srgb, var(--accent, var(--red)) 50%, transparent) !important;
|
border-color: color-mix(in srgb, var(--accent, var(--red)) 50%, transparent) !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user