From 9b000fcadc4c4b235af9199fe8de7bf233cfc74b Mon Sep 17 00:00:00 2001 From: Damien LAGAE Date: Mon, 27 Apr 2026 20:02:26 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20UserMenu=20navigation=20compo?= =?UTF-8?q?nent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a ready-to-use user menu component for the navbar, plus minor tweaks to the Menu component to keep items vertically aligned when their heights differ. UserMenu features: - Circular avatar (3rem / 48px) rendered from a profile picture or auto-derived colored initials when no image is provided - Initials derived from the `name` parameter (first + last word, or two first chars for single-word names), uppercase, multibyte-safe - Background color picked deterministically from a curated palette via CRC32 hash of `name`, so avatars stay stable across pages - Right-aligned dropdown by default, with the user name as header - Items support a `visible` flag to express conditional entries (e.g. permission-gated links) without surrounding `{% if %}` blocks - Auto-detection of active state on items, consistent with MenuItem Menu adjustment: - Add `align-items-center` to the rendered `