Fix: Eliminate Dead Space in Page Builder Layout #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π οΈ Fix: Eliminate Dead Space in Page Builder Layout
π Summary
This PR addresses unwanted horizontal scrolling and right-side dead space in the Plugin Studio Unified Layout and Unified Page Renderer Adapter. The issue was caused by container elements exceeding their parent width, resulting in horizontal overflow and inconsistent rendering behavior.
π Problem
PluginStudioLayoutUnifiedallowed both horizontal and vertical overflow, which caused horizontal scrollbars and dead space beyond the visible canvas.PluginStudioAdapter, containers (.unified-page-renderer,.layout-engine,.responsive-container) and the grid background were configured withmin-width: 100vw, which locked them to the viewport rather than the container.This produced right-side blank space and misaligned layouts.
β Solution
PluginStudioLayoutUnified.tsxoverflow: autowith explicitoverflowY: autoandoverflowX: hidden.width: 100%,maxWidth: 100%, andminWidth: 0to enforce container sizing without horizontal bleed.PluginStudioAdapter.tsxUpdated CSS for unified container classes:
max-width: 100%andoverflow-x: hidden.min-width: 100vwwithmin-width: 100%to align with container width instead of viewport width.Strengthened grid container constraints with
max-width: 100%.π§ͺ Test Coverage
Verified across multiple layouts in Plugin Studio:
Confirmed behavior in both light and dark modes.
ποΈ Affected Files
PluginStudioLayoutUnified.tsxβ Hardened container overflow handlingPluginStudioAdapter.tsxβ CSS adjustments to prevent horizontal overflow and viewport bleed