fixed viewer height apps

This commit is contained in:
PhilReact 2024-10-24 05:26:48 +03:00
parent 5cd26fae73
commit b9bf20b39b
2 changed files with 7 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export const AppViewer = ({ app }) => {
return (
<iframe ref={iframeRef} style={{
height: !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px - 20px)`,
height: !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px )`,
border: 'none',
width: '100%'
}} id="browser-iframe" src={defaultUrl} sandbox="allow-scripts allow-same-origin allow-forms allow-downloads allow-modals" allow="fullscreen">

View File

@ -28,13 +28,18 @@ const AppViewerContainer = ({app, isSelected, hide}) => {
*::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
.frame-content {
overflow: hidden;
height: ${!isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px )`};
}
`}
</style>
</>
} style={{
height: !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px - 20px)`,
height: !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px )`,
border: 'none',
width: '100%',
overflow: 'hidden',
display: (!isSelected || hide) && 'none'
}} ><AppViewer app={app} /></Frame>
)