mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
refactor: unify FilePond edit previews + clean upload UI and shared fragments
* Move shared `fichiers-fragment.php` from `partage/` to `templates/partials/form/` and update all include/require references * `.gitignore`: exclude SQLite WAL/SHM journal files * FilePond UI: * change uploaded file block border state from yellow to green * restyle image previews to use site light-theme colors * Edit mode: * remove custom existing-file preview list implementation * preload existing files directly into FilePond pools * include `cover` and `note_intention` assets in FilePond-managed state * Remove obsolete upload progress bar UI and related JS includes * Remove deprecated `Écriture` + `Image` format types from upload flow/configuration
This commit is contained in:
@@ -576,7 +576,7 @@
|
||||
.filepond--file {
|
||||
color: var(--text-primary);
|
||||
background-color: var(--bg-tertiary);
|
||||
border: 1px solid var(--accent-primary);
|
||||
border: 1px solid var(--accent-yellow);
|
||||
}
|
||||
|
||||
.filepond--file .filepond--file-status {
|
||||
@@ -626,6 +626,24 @@
|
||||
/* Processing complete */
|
||||
[data-filepond-item-state="processing-complete"] .filepond--item-panel {
|
||||
background-color: var(--bg-primary);
|
||||
border-color: var(--accent-green);
|
||||
}
|
||||
[data-filepond-item-state="processing-complete"] .filepond--file {
|
||||
border-color: var(--accent-green);
|
||||
}
|
||||
|
||||
/* FilePond image preview: use site light colors instead of dark defaults */
|
||||
.filepond--image-preview {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
.filepond--image-preview-overlay-idle {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.filepond--image-preview-overlay-success {
|
||||
color: var(--accent-green);
|
||||
}
|
||||
.filepond--image-preview-overlay-failure {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
/* ── Partage recap page ─────────────────────────────────────────────────── */
|
||||
|
||||
Reference in New Issue
Block a user