Skip to content

Fix Bloblang playground editor alignment#362

Merged
JakeSCahill merged 5 commits intomainfrom
fix/playground-editor-alignment
Feb 5, 2026
Merged

Fix Bloblang playground editor alignment#362
JakeSCahill merged 5 commits intomainfrom
fix/playground-editor-alignment

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

@JakeSCahill JakeSCahill commented Feb 4, 2026

Summary

  • Convert playground layout from flexbox to CSS Grid for precise column alignment
  • Add fixed height constraints on editor headers (70px) to ensure Input and Output headers match
  • Constrain header content and validation row heights with overflow handling to prevent error states from breaking alignment

https://deploy-preview-362--docs-ui.netlify.app/playground

Test plan

  • Verify Input and Output editors align horizontally with valid JSON input
  • Verify alignment is maintained when invalid JSON triggers error messages and "Ask AI" button
  • Test on mobile viewport to ensure responsive layout still works

- Convert playground layout from flexbox to CSS Grid for precise column alignment
- Add fixed height constraints on editor headers (70px) to ensure Input and Output headers match
- Constrain header content height (48px) and validation row height (22px) with overflow hidden
- Add smaller Ask AI button variant (20px) when displayed in header to fit within constraints
- Restructure Output header HTML to match Input's two-row structure with spacer
- Add explicit grid placement rules for each editor section
- Truncate long error messages with text-overflow ellipsis
- Update mobile responsive styles for grid layout
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 4, 2026

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit 2f8aef7
🔍 Latest deploy log https://app.netlify.com/projects/docs-ui/deploys/6985031a7ed97b0008f95548
😎 Deploy Preview https://deploy-preview-362--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 27 (🟢 up 2 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 89 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 4, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
📝 Walkthrough

Walkthrough

This pull request refactors the Bloblang playground layout from a flexbox to CSS Grid architecture. The main container now uses a two-column grid layout with explicit column and row assignments for editor and output sections. Height, overflow, and max-height constraints are added to stabilize component sizing across themes. Mobile responsiveness is updated to use single-column layout with resets to grid placements. Additionally, the validation indicator styling is updated to support text truncation with ellipsis. In the HTML template, the Output header's Copy button is repositioned within an additional flex container for improved layout consistency.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • paulohtb6
  • micheleRP
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Fix Bloblang playground editor alignment' accurately summarizes the main objective of converting the playground layout to CSS Grid and fixing header alignment issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description clearly relates to the changeset, describing the conversion from flexbox to CSS Grid layout, fixed header height constraints, and responsive mobile adjustments that match the actual CSS and HTML modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/playground-editor-alignment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Change layout to Input/Mapping side by side with Output below
- Add flow arrow indicator between input row and output
- Move metadata editors to collapsible Advanced Options panel
- Responsive: stacks vertically on mobile (<1024px)

Based on UX feedback from Blair McKee.
On mobile, editor headers need to grow to accommodate stacked buttons
and validation indicators. Removing min/max-height constraints allows
the header to expand naturally without overlapping the editor.
@JakeSCahill JakeSCahill requested a review from a team February 5, 2026 10:22
- Fix Advanced Options toggle: wrap content in div, hide browser disclosure marker
- Fix mobile layout: remove fixed header heights, allow content to stack
- Fix overflow: add max-width and overflow-x constraints to prevent horizontal overflow
- Set consistent min-height for metadata editors
- Change editor resize to vertical only
- Remove blue circular background that looked like a clickable button
- Change to grey color with reduced opacity for subtlety
- Reduce vertical padding from 8px to 4px
@JakeSCahill JakeSCahill merged commit cdf838f into main Feb 5, 2026
6 checks passed
@JakeSCahill JakeSCahill deleted the fix/playground-editor-alignment branch February 5, 2026 22:09
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