mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(ui): widen scroll-mt on about and privacy anchors so the sticky header does not occlude the section start
Both pages anchored their sections at scroll-mt-20 (80 px). The sticky header pads safe-area-inset-top (~47 px on a notch device) plus py-3 plus an inner min-h-11 link, landing around 115 px — past the 80 px offset. Lifting to scroll-mt-28 (112 px) clears the header on every viewport we ship to without over-padding the desktop case.
This commit is contained in:
1 parent
7f035958e4
commit
25e63fcf02
2 files changed
+2
-2
No files matched your search
@@ -42,7 +42,7 @@ function Section({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section id={id} className="space-y-3 scroll-mt-20">
|
||||
<section id={id} className="space-y-3 scroll-mt-28">
|
||||
<h2 className="text-xl font-semibold tracking-tight md:text-2xl">
|
||||
{title}
|
||||
</h2>
|
||||
|
||||
@@ -48,7 +48,7 @@ interface SectionProps {
|
||||
|
||||
function Section({ id, title, children }: SectionProps) {
|
||||
return (
|
||||
<section id={id} className="space-y-3 scroll-mt-20">
|
||||
<section id={id} className="space-y-3 scroll-mt-28">
|
||||
<h2 className="text-xl font-semibold tracking-tight md:text-2xl">
|
||||
{title}
|
||||
</h2>
|
||||
|
||||
Reference in new issue
Block a user