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 @@ + +