From e8bf89d1847933499ac8b4cc885fa54f5e342ed4 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Thu, 30 Apr 2026 14:16:23 +0200 Subject: [PATCH] =?UTF-8?q?admin=20header:=20replace=20d=C3=A9connexion=20?= =?UTF-8?q?text=20with=20SVG=20sign-out=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 3 +++ app/public/assets/css/admin.css | 5 +++++ app/templates/header.php | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 8648771..56b356a 100644 --- a/TODO.md +++ b/TODO.md @@ -17,6 +17,9 @@ - [x] **add.php / edit.php / partage/index.php** — use `sortable.min.js` + `file-upload-queue.js` instead of `file-preview.js` - [x] **docs/file-uploads.md** — reference document covering accepted types, size limits, storage layout, ordering, labels, security, and source file index +## UI +- [x] **admin header** — replace "Déconnexion" text link with SVG sign-out icon (accessible via `aria-label` + `.sr-only` span) + ## Bug fixes - [x] **smtp-test.php** — wrap `SmtpRelay::send()` in `try/catch SmtpSendException` so SMTP delivery failures (e.g. 550 recipient rejected) surface as a proper flash error instead of an uncaught exception/silent crash - [x] **partage email retry** — on 550 recipient-rejected, redirect to `/partage/retry-email` instead of `recapitulatif`; student can correct address and resend or skip diff --git a/app/public/assets/css/admin.css b/app/public/assets/css/admin.css index e5ea1eb..b296932 100644 --- a/app/public/assets/css/admin.css +++ b/app/public/assets/css/admin.css @@ -29,10 +29,15 @@ .admin-body header nav ul [data-nav-logout] a { opacity: 0.6; + display: flex; + align-items: center; } .admin-body header nav ul [data-nav-logout] a:hover { opacity: 1; } +.admin-body header nav ul [data-nav-logout] a svg { + display: block; +} /* Public-site link icon in admin nav */ .admin-body header nav > a svg { diff --git a/app/templates/header.php b/app/templates/header.php index 789a515..d75a897 100644 --- a/app/templates/header.php +++ b/app/templates/header.php @@ -30,7 +30,7 @@ $_thesisId = $_GET['id'] ?? null;
  • >Modifier
  • -
  • Déconnexion
  • +
  • Déconnexion