@@ -18,12 +18,10 @@ import { Link as RouterLink } from "react-router-dom"
18
18
import { Alert , AlertDetail } from "components/Alert/Alert"
19
19
import { Avatar } from "components/Avatar/Avatar"
20
20
import { AvatarData } from "components/AvatarData/AvatarData"
21
- import { bannerHeight } from "components/DeploymentBanner/DeploymentBannerView"
22
21
import { TemplateResourcesTable } from "components/TemplateResourcesTable/TemplateResourcesTable"
23
22
import { WorkspaceBuildLogs } from "components/WorkspaceBuildLogs/WorkspaceBuildLogs"
24
23
import { PublishVersionData } from "pages/TemplateVersionPage/TemplateVersionEditorPage/types"
25
24
import { FC , useCallback , useEffect , useRef , useState } from "react"
26
- import { navHeight , dashboardContentBottomPadding } from "theme/constants"
27
25
import {
28
26
createFile ,
29
27
existsFile ,
@@ -50,6 +48,7 @@ import {
50
48
} from "./TemplateVersionStatusBadge"
51
49
import { Theme } from "@mui/material/styles"
52
50
import AlertTitle from "@mui/material/AlertTitle"
51
+ import { DashboardFullPage } from "components/Dashboard/DashboardLayout"
53
52
54
53
export interface TemplateVersionEditorProps {
55
54
template : Template
@@ -185,7 +184,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
185
184
186
185
return (
187
186
< >
188
- < div className = { styles . root } >
187
+ < DashboardFullPage className = { styles . root } >
189
188
< div className = { styles . topbar } data-testid = "topbar" >
190
189
< div className = { styles . topbarSides } >
191
190
< Link
@@ -415,7 +414,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
415
414
) }
416
415
</ div >
417
416
</ div >
418
- </ div >
417
+ </ DashboardFullPage >
419
418
420
419
< PublishTemplateVersionDialog
421
420
key = { templateVersion . name }
@@ -446,15 +445,7 @@ const useStyles = makeStyles<
446
445
}
447
446
> ( ( theme ) => ( {
448
447
root : {
449
- height : ( props ) =>
450
- `calc(100vh - ${
451
- navHeight + ( props . deploymentBannerVisible ? bannerHeight : 0 )
452
- } px)`,
453
448
background : theme . palette . background . default ,
454
- flex : 1 ,
455
- display : "flex" ,
456
- flexDirection : "column" ,
457
- marginBottom : - dashboardContentBottomPadding , // Remove dashboard bottom padding
458
449
} ,
459
450
topbar : {
460
451
padding : theme . spacing ( 2 ) ,
@@ -478,6 +469,7 @@ const useStyles = makeStyles<
478
469
sidebarAndEditor : {
479
470
display : "flex" ,
480
471
flex : 1 ,
472
+ flexBasis : 0 ,
481
473
} ,
482
474
sidebar : {
483
475
minWidth : 256 ,
@@ -505,7 +497,7 @@ const useStyles = makeStyles<
505
497
width : "100%" ,
506
498
gridTemplateColumns : ( props ) =>
507
499
props . showBuildLogs ? "1fr 1fr" : "1fr 0fr" ,
508
- height : `calc(100vh - ${ navHeight + topbarHeight } px)` ,
500
+ minHeight : "100%" ,
509
501
overflow : "hidden" ,
510
502
} ,
511
503
editor : {
0 commit comments