Web:Components:Display list at bottom if mobile view.
This commit is contained in:
parent
0dbf8b1df8
commit
8ace49e484
@ -112,6 +112,7 @@ class ComboBox extends React.Component {
|
|||||||
isAside,
|
isAside,
|
||||||
withBackground,
|
withBackground,
|
||||||
advancedOptionsCount,
|
advancedOptionsCount,
|
||||||
|
isMobileView,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const { tabIndex, ...props } = this.props;
|
const { tabIndex, ...props } = this.props;
|
||||||
@ -210,6 +211,7 @@ class ComboBox extends React.Component {
|
|||||||
withBackdrop={withBackdrop}
|
withBackdrop={withBackdrop}
|
||||||
isAside={isAside}
|
isAside={isAside}
|
||||||
withBackground={withBackground}
|
withBackground={withBackground}
|
||||||
|
isMobileView={isMobileView && !disableMobileView}
|
||||||
>
|
>
|
||||||
{advancedOptions
|
{advancedOptions
|
||||||
? advancedOptions
|
? advancedOptions
|
||||||
|
@ -242,7 +242,13 @@ class DropDown extends React.PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
renderDropDown() {
|
renderDropDown() {
|
||||||
const { maxHeight, children, showDisabledItems, theme } = this.props;
|
const {
|
||||||
|
maxHeight,
|
||||||
|
children,
|
||||||
|
showDisabledItems,
|
||||||
|
theme,
|
||||||
|
isMobileView,
|
||||||
|
} = this.props;
|
||||||
const { directionX, directionY, width, manualY } = this.state;
|
const { directionX, directionY, width, manualY } = this.state;
|
||||||
|
|
||||||
let cleanChildren = children;
|
let cleanChildren = children;
|
||||||
@ -268,6 +274,7 @@ class DropDown extends React.PureComponent {
|
|||||||
manualY={manualY}
|
manualY={manualY}
|
||||||
isExternalLink={this.props.isExternalLink}
|
isExternalLink={this.props.isExternalLink}
|
||||||
isPersonal={this.props.isPersonal}
|
isPersonal={this.props.isPersonal}
|
||||||
|
isMobileView={isMobileView}
|
||||||
{...dropDownMaxHeightProp}
|
{...dropDownMaxHeightProp}
|
||||||
>
|
>
|
||||||
{maxHeight ? (
|
{maxHeight ? (
|
||||||
|
@ -79,6 +79,17 @@ const StyledDropdown = styled.div`
|
|||||||
&.download-dialog-dropDown {
|
&.download-dialog-dropDown {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (orientation: portrait) {
|
||||||
|
${(props) =>
|
||||||
|
props.isMobileView &&
|
||||||
|
css`
|
||||||
|
top: auto !important;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
`}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
StyledDropdown.defaultProps = { theme: Base };
|
StyledDropdown.defaultProps = { theme: Base };
|
||||||
|
@ -22,6 +22,7 @@ const TableGroupMenu = (props) => {
|
|||||||
isInfoPanelVisible,
|
isInfoPanelVisible,
|
||||||
toggleInfoPanel,
|
toggleInfoPanel,
|
||||||
withoutInfoPanelToggler,
|
withoutInfoPanelToggler,
|
||||||
|
isMobileView,
|
||||||
...rest
|
...rest
|
||||||
} = props;
|
} = props;
|
||||||
const onCheckboxChange = (e) => {
|
const onCheckboxChange = (e) => {
|
||||||
@ -54,6 +55,7 @@ const TableGroupMenu = (props) => {
|
|||||||
manualY="42px"
|
manualY="42px"
|
||||||
manualX="-32px"
|
manualX="-32px"
|
||||||
title={t("Common:TitleSelectFile")}
|
title={t("Common:TitleSelectFile")}
|
||||||
|
isMobileView={isMobileView}
|
||||||
/>
|
/>
|
||||||
<div className="table-container_group-menu-separator" />
|
<div className="table-container_group-menu-separator" />
|
||||||
<StyledScrollbar>
|
<StyledScrollbar>
|
||||||
|
Loading…
Reference in New Issue
Block a user