Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,13 @@ export const PluginStudioLayoutUnified: React.FC = () => {
{/* Main Content Area */}
<Box sx={{
flex: 1,
overflow: 'auto',
position: 'relative'
position: 'relative',
// Prevent horizontal overflow/dead space while allowing vertical scroll
overflowY: 'auto',
overflowX: 'hidden',
width: '100%',
maxWidth: '100%',
minWidth: 0
}}>
<ErrorBoundary>
{useUnifiedRenderer && currentPage && layouts ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,14 @@ export const PluginStudioAdapter: React.FC<PluginStudioAdapterProps> = ({
display: none !important;
}

/* Remove scrollbars and create expandable canvas like legacy */
/* Ensure unified container never exceeds its parent width */
.unified-page-renderer,
.unified-page-renderer .layout-engine,
.unified-page-renderer .responsive-container {
height: 100% !important;
width: 100% !important;
overflow: visible !important;
max-width: 100% !important;
overflow-x: hidden !important;
}

/* Create expandable grid background like legacy Plugin Studio - Theme aware */
Expand All @@ -744,14 +745,17 @@ export const PluginStudioAdapter: React.FC<PluginStudioAdapterProps> = ({
background-color: ${theme.palette.mode === 'dark' ? '#303030' : '#f5f5f5'};
z-index: -1;
min-height: 100vh;
min-width: 100vw;
/* IMPORTANT: limit to container width (not viewport) to prevent right-side dead space */
min-width: 100%;
}

/* Ensure the grid container can expand beyond viewport */
.unified-page-renderer .react-grid-layout {
min-height: 100vh !important;
position: relative !important;
width: 100% !important;
max-width: 100% !important;
overflow-x: hidden !important;
}

/* Force proper grid layout behavior - CRITICAL for positioning */
Expand Down