Skip to content

Commit e332f35

Browse files
committed
minimun size setting
1 parent af31d9a commit e332f35

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

src/app/App.tsx

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,28 @@ export const AppFC: FC<AppFCProps> = function AppFC(appProps) {
465465
]);
466466

467467
let app =
468-
<Box sx={{ flexGrow: 1, height: '100%', overflow: "hidden", display: "flex", flexDirection: "column" }}>
469-
{appBar}
470-
<RouterProvider router={router} />
471-
<MessageSnackbar />
468+
<Box sx={{
469+
position: 'absolute', // Added to fill viewport
470+
top: 0,
471+
left: 0,
472+
right: 0,
473+
bottom: 0,
474+
overflow: 'auto', // Enable scrolling at root level
475+
'& > *': {
476+
minWidth: '1200px',
477+
minHeight: '800px'
478+
}
479+
}}>
480+
<Box sx={{
481+
display: 'flex',
482+
flexDirection: 'column',
483+
height: '100%',
484+
width: '100%'
485+
}}>
486+
{appBar}
487+
<RouterProvider router={router} />
488+
<MessageSnackbar />
489+
</Box>
472490
</Box>;
473491

474492
return (

src/views/DataFormulator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Totals (7 entries) 5 5 5 15
178178
console.log(selectedModelId)
179179

180180
return (
181-
<Box sx={{ display: 'block', width: "100%", height: 'calc(100vh - 49px)' }}>
181+
<Box sx={{ display: 'block', width: "100%", height: 'calc(100% - 49px)' }}>
182182
<DndProvider backend={HTML5Backend}>
183183
{selectedModelId == undefined ? modelSelectionDialogBox : (tables.length > 0 ? fixedSplitPane : dataUploadRequestBox)}
184184
</DndProvider>

src/views/ModelSelectionDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export const ModelSelectionButton: React.FC<{}> = ({ }) => {
331331

332332
let message = "the model is ready to use";
333333
if (status == "unknown") {
334-
message = "Status unknown, click the status icon to test again.";
334+
message = "Click the status icon to test again before applying.";
335335
} else if (status == "error") {
336336
message = testedModels.find(t => t.id == model.id)?.message || "Unknown error";
337337
}
@@ -419,7 +419,7 @@ export const ModelSelectionButton: React.FC<{}> = ({ }) => {
419419
}}
420420
>
421421
<TableCell colSpan={2} align="right" ></TableCell>
422-
<TableCell colSpan={5}>
422+
<TableCell colSpan={6}>
423423
<Typography variant="caption" color="#c82c2c">
424424
{message}
425425
</Typography>

0 commit comments

Comments
 (0)