fix(launcher): remove wasted top space in iframe/menu-hidden mode; vh bottom buffer
events/+layout.svelte:
the events nav is actually rendered. Adds pt-0 for the launcher case
(nav never rendered there; launcher manages its own header offset).
- pb-48 (fixed 12rem) → pb-[25vh] — scrolls ~25% of viewport below
last card on any screen size, scales properly on phone/tablet/desktop.
launcher/+layout.svelte outer wrapper:
- Static mt-4 replaced with conditional:
mt-12 when launcher header is visible (matches h-12 header height,
keeps content clear of the absolute overlay)
mt-2 when launcher header is hidden (minimal breathing room only)
- Result: iframe mode + launcher_header=hide → near-zero top dead space
This commit is contained in:
@@ -261,15 +261,16 @@
|
||||
|
||||
<section
|
||||
class:iframe={$ae_loc?.iframe}
|
||||
class:pt-12={nav_y_height <= 50}
|
||||
class:pt-20={nav_y_height > 50 && nav_y_height <= 100}
|
||||
class:pt-32={nav_y_height > 100 && nav_y_height <= 150}
|
||||
class:pt-40={nav_y_height > 150 && nav_y_height <= 200}
|
||||
class:pt-0={!!$ae_sess?.disable_sys_nav}
|
||||
class:pt-12={!$ae_sess?.disable_sys_nav && nav_y_height <= 50}
|
||||
class:pt-20={!$ae_sess?.disable_sys_nav && nav_y_height > 50 && nav_y_height <= 100}
|
||||
class:pt-32={!$ae_sess?.disable_sys_nav && nav_y_height > 100 && nav_y_height <= 150}
|
||||
class:pt-40={!$ae_sess?.disable_sys_nav && nav_y_height > 150 && nav_y_height <= 200}
|
||||
class="
|
||||
main_content
|
||||
grow
|
||||
px-1 md:px-2 lg:px-4
|
||||
pb-48
|
||||
pb-[25vh]
|
||||
flex flex-col gap-1
|
||||
items-center
|
||||
justify-start
|
||||
|
||||
@@ -537,11 +537,13 @@
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
class:mt-12={!$events_loc.launcher.hide__launcher_header}
|
||||
class:mt-2={$events_loc.launcher.hide__launcher_header}
|
||||
class="
|
||||
static
|
||||
m-auto
|
||||
border-x border-gray-200 dark:border-gray-600
|
||||
mt-4 mb-16 sm:mb-12
|
||||
mb-16 sm:mb-12
|
||||
h-full
|
||||
w-full max-w-7xl
|
||||
transition-all
|
||||
|
||||
Reference in New Issue
Block a user