Skip to content

Commit

Permalink
Bug 53416 - Client.Files.Desktop: Fixed scrolls under Ubuntu.
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaLopaeva committed Nov 2, 2021
1 parent cf3c74c commit 5759758
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { isMobile } from "react-device-detect";
const StyledArticleBody = styled.div`
${(props) => props.displayBorder && `outline: 1px dotted;`}
flex-grow: 1;
height: 100%;
${(props) => (props.isDesktop ? "height:auto" : "height:100%")};
.custom-scrollbar {
width: calc(100% + 24px) !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import { tablet, desktop } from "@appserver/components/utils/device";

const commonStyles = css`
flex-grow: 1;
height: 100%;
${(props) => (props.isDesktop ? "height: auto" : "height: 100%")};
border-left: none;
-webkit-user-select: none;
Expand Down Expand Up @@ -114,6 +116,7 @@ class SectionBody extends React.Component {
viewAs,
withScroll,
isLoaded,
isDesktop,
} = this.props;

const focusProps = autoFocus
Expand All @@ -131,6 +134,7 @@ class SectionBody extends React.Component {
viewAs={viewAs}
pinned={pinned}
isLoaded={isLoaded}
isDesktop={isDesktop}
className="section-body"
>
{withScroll ? (
Expand Down Expand Up @@ -219,7 +223,10 @@ SectionBody.defaultProps = {
};

export default inject(({ auth }) => {
const { settingsStore } = auth;
const { isDesktopClient: isDesktop } = settingsStore;
return {
isLoaded: auth.isLoaded,
isDesktop,
};
})(observer(SectionBody));

0 comments on commit 5759758

Please sign in to comment.