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