Feature: Responsive dynamic page layout with adaptive grid and centered rendering #72
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.
PR Title
Feature: Responsive dynamic page layout with adaptive grid and centered rendering
Summary
This PR enhances the unified dynamic page renderer with responsive, viewport-aware layouts and centered rendering. It introduces adaptive row height calculations, dynamic padding adjustments, and a content-aware rendering pipeline that improves both editing and published experiences.
The changes also streamline dashboard behavior for dynamic pages by reducing unnecessary padding and applying layout-specific CSS variables.
Changes
🔹 Dashboard
DashboardLayout.tsxuseLocationto detect when the user is on a dynamic page (/pages/*).--app-header-h,--app-footer-h).🔹 Layout Engine
LayoutEngine.tsxIntroduced adaptive rowHeight calculation based on container/viewport height using
ResizeObserver.Added logic for full-width layouts:
viewportFill/fullWidth.Adjusted styling:
layout-engine-center+layout-engine-inner) to balance layouts on wide screens.Updated gridProps:
autoSizein favor of container-height control.🔹 Module Renderer
ModuleRenderer.tsxAdded
module-contentwrapper with flags:module-content--no-centermodule-content--fillEnables centered or stretched rendering depending on module configuration.
🔹 Unified Page Renderer
index.css) for layout and module styles.🔹 Styles
styles/index.cssAdded centering wrappers for balanced grid alignment on wide screens.
Introduced module-content styles for flexible centering/fill behavior.
Responsive gutter/max-width variables for mobile, tablet, desktop, and wide screens.
Added viewport-fill support:
viewportFillexpand to the full viewport height with internal scroll handling.Motivation
Impact
viewportFill/fullWidth) change behavior.