Fix mobile search overflow and replace ADP home GIF with video#394
Fix mobile search overflow and replace ADP home GIF with video#394JakeSCahill wants to merge 1 commit into
Conversation
- Add flex-wrap to the search autocomplete header (.aa-Header) so the context dropdown, Exact match toggle, and Ask AI button wrap instead of overflowing on mobile; wrap the standalone /search controls too. - Replace the 4.3 MB adp-infographic.gif on the home page with a <video> (WebM + MP4 fallback) and a lightweight JPG poster, cutting the home page LCP payload by ~98%. - Tidy pre-existing CSS (nav-toggle filter removals across home, component-home-v3, data-platform, labs-home, toolbar). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for docs-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
💤 Files with no reviewable changes (4)
📝 WalkthroughWalkthroughFive landing-page CSS files ( Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Companion PR (content assets — adds the WebM/MP4/poster this bundle references): redpanda-data/docs-site#187 |

What & why
Two issues from mobile testing + a Lighthouse audit of the home page.
1. Mobile search modal overflow
In the search autocomplete modal, the context dropdown, the Exact match toggle, and the Ask AI button sat on one non-wrapping row and overflowed horizontally on narrow screens.
src/css/search.css: addflex-wrap: wrapto.aa-Header./searchcontrols (.containerwrap + full-width searchbox) inside the existing mobile media query.2. Heavy animated GIF on the home page
adp-infographic.gif(~4.3 MB, 960×320) was the eager LCP element. Lighthouse flagged "Use video formats for animated content" (~3.96 MB potential saving) and "Properly size images".src/partials/home.hbs: replace the<img>with a<video autoplay loop muted playsinline preload="metadata" poster=...>(WebM source first, MP4 fallback).src/css/home.css: extend the visual sizing rule to also stylevideo.New assets (
adp-infographic.webm20 KB,.mp446 KB,-poster.jpg19 KB) are added in the content repo (docs-site) — see companion PR. Both PRs must land together, since this bundle references files that must exist in content.Net: ~4.3 MB → ~85 KB for the home page's largest asset (~98% reduction).
3. Minor CSS cleanup
Removes redundant
.nav-toggleinvert filters acrosshome,component-home-v3,data-platform,labs-home, andtoolbar.Testing
Built the UI bundle, pointed a local
docs-siteplaybook at it, rannpm run build-local, and verified in a browser:.aa-Headernow hasflex-wrap: wrapwith no horizontal overflow at 390px/320px; controls wrap to new rows.gulp lintpasses.🤖 Generated with Claude Code