From e0205ec725602199f8b7325f50ec2eee91f2dfcc Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 28 Apr 2026 17:30:06 -0600 Subject: [PATCH] =?UTF-8?q?fix/feat:=20men=C3=BA=20social=20en=20Adicional?= =?UTF-8?q?es,=20bot=C3=B3n=20publicar=20visible=20y=20bug=20dropdown=20b?= =?UTF-8?q?=C3=BAsqueda?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Menú: mueve Comunidad/Amigos/Mensajes a la sección Adicionales (elimina duplicado Chats) - Feed: botón Publicar más grande con ícono, textarea sin pill para mejor UX - Header búsqueda: corrige bug que cerraba el dropdown al hacer click en él (mousedown en el contenedor bloquea el cierre hasta que se suelta el botón) Co-Authored-By: Claude Sonnet 4.6 --- resources/views/feed/index.blade.php | 22 +++++----- .../views/layouts/_partials/header.blade.php | 7 ++++ .../views/layouts/_partials/menu.blade.php | 40 +++++++------------ 3 files changed, 33 insertions(+), 36 deletions(-) diff --git a/resources/views/feed/index.blade.php b/resources/views/feed/index.blade.php index 193d55a7..5d98646b 100644 --- a/resources/views/feed/index.blade.php +++ b/resources/views/feed/index.blade.php @@ -11,21 +11,21 @@ @csrf
-
- -
+ class="rounded-circle mr-3 flex-shrink-0" width="42" height="42" style="object-fit:cover"> +
-
-
diff --git a/resources/views/layouts/_partials/header.blade.php b/resources/views/layouts/_partials/header.blade.php index b33320dc..8fbe384c 100644 --- a/resources/views/layouts/_partials/header.blade.php +++ b/resources/views/layouts/_partials/header.blade.php @@ -390,7 +390,14 @@ function markAllNotifsRead() { timer = setTimeout(() => doSearch(this.value.trim()), 300); }); + // Evita que el dropdown se cierre al hacer mousedown dentro de él + // (mousedown dispara antes que click, y blur del input cierra antes de registrar la acción) + let interactingWithResults = false; + results.addEventListener('mousedown', () => { interactingWithResults = true; }); + document.addEventListener('mouseup', () => { interactingWithResults = false; }); + document.addEventListener('click', function (e) { + if (interactingWithResults) return; if (!input.contains(e.target) && !results.contains(e.target)) { results.classList.add('d-none'); } diff --git a/resources/views/layouts/_partials/menu.blade.php b/resources/views/layouts/_partials/menu.blade.php index 88de97a6..ad629c9e 100644 --- a/resources/views/layouts/_partials/menu.blade.php +++ b/resources/views/layouts/_partials/menu.blade.php @@ -16,29 +16,6 @@ Inicio - - - - - - - - @@ -219,10 +196,23 @@ + +