From 3a66576ff8c720ea0aba3298c01ce8888e9cff56 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 08:09:15 -0500 Subject: [PATCH] fix(sidebar): centrar label con display:block+text-align:center, chevron absolute Co-Authored-By: Claude Sonnet 4.6 --- shared/components/sidebar.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/shared/components/sidebar.php b/shared/components/sidebar.php index 9352822..8fafbce 100644 --- a/shared/components/sidebar.php +++ b/shared/components/sidebar.php @@ -317,12 +317,11 @@ if (class_exists('ModuleRegistry', false)) { /* ── Acordeón de categorías ─────────────────────────── */ .sidebar-section { position: relative; - display: flex; - align-items: center; - justify-content: center; + display: block; + text-align: center; cursor: pointer; user-select: none; - padding: 8px 28px 6px; + padding: 8px 30px 6px; margin-top: 6px; border-radius: 8px 8px 0 0; transition: background .15s, border-color .15s; @@ -339,15 +338,17 @@ if (class_exists('ModuleRegistry', false)) { background: rgba(255,255,255,.1); color: #fff; } -.sidebar-section .sb-cat-label { display:flex; align-items:center; gap:5px; } +.sidebar-section .sb-cat-label { display:inline-flex; align-items:center; gap:5px; } .sb-chevron { position: absolute; right: 12px; + top: 50%; + transform: translateY(-50%); font-size: .6rem; opacity: .6; transition: transform .25s ease; } -.sidebar-section.collapsed .sb-chevron { transform: rotate(-90deg); } +.sidebar-section.collapsed .sb-chevron { transform: translateY(-50%) rotate(-90deg); } /* Grupo colapsable */ .sb-group { overflow: hidden; transition: max-height .28s ease, opacity .2s ease; }