Make grid block VTL renderer responsive on small screens#35783
Conversation
Injects a scoped <style> block (once per page via Velocity flag) with a 768px media query that collapses grid columns to full-width stacking. !important overrides are required because column spans are applied as inline styles. https://claude.ai/code/session_01UwG1xgHsvUanDJjESapt9s
❌ Issue Linking RequiredThis PR could not be linked to an issue. All PRs must be linked to an issue for tracking purposes. How to fix this:Option 1: Add keyword to PR body (Recommended - auto-removes this comment)
Why is this required?Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.--- This comment was automatically generated by the issue linking workflow |
|
Claude finished @fmontes's task in 1m 17s —— View job ReviewThe refactor is solid: dropping A few things worth a second look: 1. PR body is stale. It still says " 2. 3. 4. Generic class names. 5. Hard-coded 768px breakpoint. Not a bug, but customers that want a different mobile breakpoint can't override this without 6. Pre-existing, not introduced here: if None of the above block the PR. (3) and (4) are the ones I'd want eyes on before merging.
|
Replaces inline grid-column spans with a --grid-span CSS custom property applied via the .grid-block__column class, so the 768px media query can override grid-column directly without !important. Moves the scoped <style> inside the .grid-block <div> to guarantee a valid parent even when a grid block is nested in <blockquote>/<table>/etc. Drops the data-type attribute selectors in favor of the existing class selectors. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Keeps data-type="gridBlock" and data-type="gridColumn" on the rendered elements so downstream consumers can still target them. CSS selectors still use the .grid-block / .grid-block__column classes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Injects a scoped <style> block (once per page via Velocity flag) with a 768px media query that collapses grid columns to full-width stacking. !important overrides are required because column spans are applied as inline styles.
https://claude.ai/code/session_01UwG1xgHsvUanDJjESapt9s
Area.mp4