From 4906364a6565f24596ba8bc4d2a944e8131e72b2 Mon Sep 17 00:00:00 2001 From: jamesvici Date: Tue, 15 Sep 2026 19:15:16 -0400 Subject: [PATCH] Fix nav overflow and slideshow caption rendering Nav.astro was using the #smallbusiness-main-menu id/CSS (designed for the tall under-logo nav row) while rendered inside #top-menu-container (the compact top bar), causing items to overflow onto a second line. Switched to the matching #smallbusiness-top-menu styling and dropped the extra "Home" link that pushed it over. Single nav bar, as intended. Splide's core CSS import from Slideshow.astro's frontmatter was being silently dropped from the build (component-level bare CSS imports don't bundle the same way layout-level ones do) -- moved it to BaseLayout.astro where global.css already imports successfully, and switched to the full theme CSS for real arrow/pagination styling. Also fixed #slideshow .post-slide: position:absolute with no explicit top/left fell back to its hypothetical static position (right after the 354px image), pushing the caption overlay below the visible slide instead of on top of it. Pinned top:0; left:0 so the margin-based offset actually anchors to the slide. Verified visually via headless Chromium screenshot, not just HTML content -- the earlier "renders the 5 latest posts" check only confirmed the data was present, not that it displayed correctly. --- src/components/Nav.astro | 3 +-- src/components/Slideshow.astro | 2 +- src/layouts/BaseLayout.astro | 1 + src/pages/blog/index.astro | 10 +++++++++- src/pages/index.astro | 10 +++++++++- src/styles/global.css | 2 ++ 6 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/components/Nav.astro b/src/components/Nav.astro index adce3a1..278e8c1 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -2,9 +2,8 @@ import nav from '../data/nav.json'; --- -