@@ -20,6 +20,7 @@ import type { SirenPanelProps } from "../types";
2020import {
2121 filterDataProperty ,
2222 generateFilterParams ,
23+ getModalContentHeightInFullScreen ,
2324 isEmptyArray ,
2425 isValidResponse ,
2526 mergeArrays ,
@@ -437,6 +438,10 @@ const SirenPanel: FC<SirenPanelProps> = ({
437438 } ;
438439 } , [ fullScreen , styles , modalWidth ] ) ;
439440
441+ const contentContainerHeightInFullScreen = useMemo ( ( ) => {
442+ return getModalContentHeightInFullScreen ( styles ?. headerContainer ?. height ) ;
443+ } , [ styles ?. headerContainer ?. height ] ) ;
444+
440445 return (
441446 < div
442447 className = {
@@ -445,7 +450,7 @@ const SirenPanel: FC<SirenPanelProps> = ({
445450 style = { panelStyle }
446451 data-testid = "siren-panel"
447452 >
448- < div >
453+ < div className = { fullScreen ? 'siren-sdk-panel-modal-fullscreen' : '' } >
449454 { ! hideHeader &&
450455 ( customHeader || (
451456 < Header
@@ -460,16 +465,19 @@ const SirenPanel: FC<SirenPanelProps> = ({
460465 < div
461466 style = { {
462467 ...( ! fullScreen && styles . windowBottomBorder ) ,
468+ ...( fullScreen && { height : contentContainerHeightInFullScreen } ) ,
463469 ...styles . contentContainer ,
464470 } }
465471 >
466472 < div
467473 id = "contentContainer"
468474 style = { {
469- ...( ! fullScreen && styles . windowBottomBorder ) ,
470- ...styles . body ,
475+ ...( fullScreen ? { height : contentContainerHeightInFullScreen } : {
476+ ...styles . windowBottomBorder ,
477+ ...styles . body
478+ } ) ,
471479 } }
472- className = { containerClassNames }
480+ className = { `siren-sdk-panel-content-container ${ containerClassNames } ` }
473481 aria-label = "siren-notification-list"
474482 >
475483 { renderList ( ) }
0 commit comments