Update slide list and edit slide form without page reloads
Slide list actions (hide, delete, reset, duplicate, go live, pause) now run via fetch and refresh only the changed regions, keeping scroll position and focus. Add/edit slide forms open in a dialog. Admin pages answer with a slim fragment layout when the X-Fragment header is sent. Replace postLink confirms (inline onclick, blocked by the CSP) with postButton and data-confirm handled in plenario.js. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9262a57c17
commit
b643072c3c
9 files changed
+403
-32
No files matched your search
@@ -732,3 +732,17 @@ body.present {
|
||||
.theme-switch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
|
||||
.theme-switch:hover { border-color: var(--primary); }
|
||||
.theme-switch__icon { font-size: 1.3em; line-height: 1; }
|
||||
|
||||
/* Slide form in a dialog (admin dashboard) */
|
||||
.modal {
|
||||
width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
|
||||
border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
|
||||
}
|
||||
.modal::backdrop { background: rgba(10, 12, 30, .55); }
|
||||
.modal .card--form { max-width: none; margin: 0; border: 0; box-shadow: none; background: transparent; }
|
||||
.modal__close { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; z-index: 1; }
|
||||
.modal .message { margin: 16px 16px 0; cursor: default; }
|
||||
body:has(dialog[open]) { overflow: hidden; }
|
||||
.slide-item__actions form { display: contents; }
|
||||
.slide-item__actions button:disabled, .admin-head__actions button:disabled { opacity: .6; cursor: progress; }
|
||||
Reference in new issue
Block a user