fix: Multiple scrolls in view mode (#15679)

fix multiple scrollbars
This commit is contained in:
rahulramesha 2022-08-09 22:40:10 +05:30 committed by GitHub
parent 1ecffb8272
commit b4e9f648c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,9 @@ import {
} from "../Applications/permissionHelpers";
import { builderURL } from "RouteBuilder";
const Section = styled.section<{
height: number;
}>`
const Section = styled.section`
height: 100%;
min-height: ${({ height }) => height}px;
width: 100%;
margin: 0 auto;
position: relative;
overflow-x: auto;
@ -91,7 +89,7 @@ function AppViewerPageContainer(props: AppViewerPageContainerProps) {
if (!(widgets.children && widgets.children.length > 0)) return pageNotFound;
return (
<Section height={widgets.bottomRow}>
<Section>
<AppPage
appName={currentApplication?.name}
dsl={widgets}