Spaces:
Running
Running
axeronis commited on
Commit ·
b4da4fc
1
Parent(s): e99c84f
fix(ui): isolate mobile padding to mobile screens only, fixed desktop regressions
Browse files
frontend/app/globals.css
CHANGED
|
@@ -166,6 +166,11 @@ html {
|
|
| 166 |
/* Mobile Layout Constants */
|
| 167 |
--header-height-mobile: calc(64px + env(safe-area-inset-top, 0px));
|
| 168 |
--footer-height-mobile: calc(56px + env(safe-area-inset-bottom, 0px));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
}
|
| 170 |
|
| 171 |
body {
|
|
|
|
| 166 |
/* Mobile Layout Constants */
|
| 167 |
--header-height-mobile: calc(64px + env(safe-area-inset-top, 0px));
|
| 168 |
--footer-height-mobile: calc(56px + env(safe-area-inset-bottom, 0px));
|
| 169 |
+
|
| 170 |
+
@media (min-width: 768px) {
|
| 171 |
+
--header-height-mobile: 0px;
|
| 172 |
+
--footer-height-mobile: 0px;
|
| 173 |
+
}
|
| 174 |
}
|
| 175 |
|
| 176 |
body {
|
frontend/components/Header.tsx
CHANGED
|
@@ -51,8 +51,8 @@ export function Header() {
|
|
| 51 |
|
| 52 |
<div className="relative z-10 flex items-center justify-between w-full">
|
| 53 |
{/* Left: Logo (Mobile/Tablet Hidden sidebar view) */}
|
| 54 |
-
<div className="flex items-center gap-2 lg:hidden">
|
| 55 |
-
<Link href="/
|
| 56 |
<div className="w-8 h-8 relative">
|
| 57 |
<img src="/logo-v2.png" alt="Logo" className="w-full h-full object-contain transition-transform group-hover:scale-110" />
|
| 58 |
</div>
|
|
|
|
| 51 |
|
| 52 |
<div className="relative z-10 flex items-center justify-between w-full">
|
| 53 |
{/* Left: Logo (Mobile/Tablet Hidden sidebar view) */}
|
| 54 |
+
<div className="flex-1 items-center gap-2 lg:hidden flex">
|
| 55 |
+
<Link href="/settings/brain" className="flex items-center gap-2 group">
|
| 56 |
<div className="w-8 h-8 relative">
|
| 57 |
<img src="/logo-v2.png" alt="Logo" className="w-full h-full object-contain transition-transform group-hover:scale-110" />
|
| 58 |
</div>
|