Greg Claude Opus 4.7 (1M context) commited on
Commit
d456a34
·
1 Parent(s): c16d5c1

fix(ta-01): replace mobile topbar with floating hamburger button

Browse files

The fixed topbar was overlapping page-level action buttons (Crear,
Carga Masiva). Replace it with a small circular FAB anchored top-left
that opens the drawer without consuming a full row of vertical space.

main-content now reserves left padding on mobile (pl-16) so page
content doesn't sit underneath the FAB.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

frontend/src/components/Layout.tsx CHANGED
@@ -14,19 +14,15 @@ export default function Layout() {
14
 
15
  return (
16
  <div className="app-layout">
17
- {/* Mobile top bar (only < md) */}
18
- <header className="mobile-topbar md:hidden">
19
- <button
20
- type="button"
21
- onClick={() => setMobileOpen(true)}
22
- aria-label="Abrir menú"
23
- className="p-2 rounded-lg hover:bg-gray-800 text-white"
24
- >
25
- <Menu size={22} />
26
- </button>
27
- <span className="font-bold text-white">Talos Access</span>
28
- <span className="w-9" />{/* spacer to keep title centered */}
29
- </header>
30
 
31
  {/* Backdrop for mobile drawer */}
32
  {mobileOpen && (
 
14
 
15
  return (
16
  <div className="app-layout">
17
+ {/* Floating hamburger (mobile only, no full topbar) */}
18
+ <button
19
+ type="button"
20
+ onClick={() => setMobileOpen(true)}
21
+ aria-label="Abrir menú"
22
+ className="mobile-menu-fab md:hidden"
23
+ >
24
+ <Menu size={20} />
25
+ </button>
 
 
 
 
26
 
27
  {/* Backdrop for mobile drawer */}
28
  {mobileOpen && (
frontend/src/styles/layout.css CHANGED
@@ -2,8 +2,10 @@
2
  @apply flex min-h-screen;
3
  }
4
 
5
- .mobile-topbar {
6
- @apply fixed top-0 inset-x-0 z-20 h-14 bg-gray-900 text-white flex items-center justify-between px-4 shadow-md;
 
 
7
  }
8
 
9
  .sidebar {
@@ -46,6 +48,6 @@
46
 
47
  .main-content {
48
  @apply flex-1 p-4 md:p-6 overflow-y-auto min-h-screen
49
- pt-[4.5rem] md:pt-6
50
  ml-0 md:ml-64;
51
  }
 
2
  @apply flex min-h-screen;
3
  }
4
 
5
+ .mobile-menu-fab {
6
+ @apply fixed top-3 left-3 z-30 inline-flex items-center justify-center
7
+ w-10 h-10 rounded-full bg-gray-900 text-white shadow-lg
8
+ hover:bg-gray-800 transition-colors;
9
  }
10
 
11
  .sidebar {
 
48
 
49
  .main-content {
50
  @apply flex-1 p-4 md:p-6 overflow-y-auto min-h-screen
51
+ pl-16 md:pl-6
52
  ml-0 md:ml-64;
53
  }