@@ -24,7 +24,7 @@ export default class TestResultsBar extends Component<Signature> {
2424 @service declare coursePageState : CoursePageStateService ;
2525 @service declare authenticator : AuthenticatorService ;
2626 @tracked activeTabSlug = 'logs' ; // 'logs' | 'autofix'
27- @tracked customHeight = htmlSafe ( 'height: 100vh' ) ;
27+ @tracked customHeight = '75vh' ;
2828
2929 get availableTabSlugs ( ) {
3030 if ( this . args . activeStep . type === 'CourseStageStep' ) {
@@ -44,6 +44,14 @@ export default class TestResultsBar extends Component<Signature> {
4444 }
4545 }
4646
47+ get containerStyle ( ) {
48+ if ( this . isExpanded ) {
49+ return htmlSafe ( `height: ${ this . customHeight } ` ) ;
50+ } else {
51+ return htmlSafe ( 'height: auto' ) ;
52+ }
53+ }
54+
4755 get isCollapsed ( ) {
4856 return ! this . isExpanded ;
4957 }
@@ -65,14 +73,14 @@ export default class TestResultsBar extends Component<Signature> {
6573 @action
6674 handleMouseResize ( event : MouseEvent ) {
6775 const newHeight = window . innerHeight - event . clientY ;
68- this . customHeight = htmlSafe ( `height: min(100vh, ${ newHeight } px)` ) ;
76+ this . customHeight = `max(250px, min(calc( 100vh - 20px) , ${ newHeight } px))` ;
6977 }
7078
7179 @action
7280 handleTouchResize ( event : TouchEvent ) {
7381 const touch = event . touches [ 0 ] as Touch ;
7482 const newHeight = window . innerHeight - touch . clientY ;
75- this . customHeight = htmlSafe ( `height: ${ newHeight } px` ) ;
83+ this . customHeight = `max(250px, min(calc(100vh - 20px), ${ newHeight } px))` ;
7684 }
7785
7886 @action
0 commit comments