Skip to content

fix(site): stop Ask tutor popup from obscuring code lab#13

Merged
StewAlexander-com merged 1 commit into
mainfrom
fix-site-mock-overlap
May 22, 2026
Merged

fix(site): stop Ask tutor popup from obscuring code lab#13
StewAlexander-com merged 1 commit into
mainfrom
fix-site-mock-overlap

Conversation

@StewAlexander-com
Copy link
Copy Markdown
Owner

Summary

The static hero landing site at `site/` had its Ask tutor popup floating over the code lab panel via `position: absolute`. On rendered widths this clipped the right edge of the `print(...)` line and the `✓ Ran cleanly` output — looking like content cutoff/overflow rather than a clean overlay.

Fix: take the chat out of absolute positioning and dock it as a normal in-flow card below the lab, inside `.mock__main`. The lab now owns its full width; the chat sits cleanly beneath it. Also shortened the demo code / output strings and bumped code + bubble type by 1px for legibility.

Changes

  • `site/index.html` — move `.mock__chat` inside `.mock__main` (after `.mock__lab`); shorten demo `print()`, output, and bot bubble text.
  • `site/style.css` — drop `position: absolute` / `right` / `bottom` on `.mock__chat`; add `margin-top: 14px`; remove now-unneeded `position: relative` on `.mock__body`; remove the `min-width: 540px` show gate (chat now docks at all sizes); slight font-size bumps in `.mock__code`, `.mock__out`, `.mock__bubble`.

Testing

  • `./scripts/check_site.sh` — passes (all assets resolve, sections present, `` balanced)
  • HTML/CSS reviewed: chat is now in document flow, no possibility of overlapping the lab.

🤖 Generated by Computer

The hero mockup's Ask tutor popup was absolutely positioned over the
code lab panel, truncating the right edge of the code and 'Ran cleanly'
output lines.

- Move the chat card into normal flow inside .mock__main, stacked below
  the lab with margin-top
- Drop position: absolute / right / bottom on .mock__chat
- Shorten the demo print() line and output string so the lab body never
  needs to compete with the chat for width
- Bump code and bubble font sizes 1px for legibility
@StewAlexander-com StewAlexander-com merged commit c7d3439 into main May 22, 2026
5 checks passed
@StewAlexander-com StewAlexander-com deleted the fix-site-mock-overlap branch May 22, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants