Web: Settings: Appearance: fixed mobile styles
This commit is contained in:
parent
61c478770a
commit
a54463404b
@ -4,6 +4,7 @@ import ModalDialog from "@docspace/components/modal-dialog";
|
||||
import styled, { css } from "styled-components";
|
||||
import Button from "@docspace/components/button";
|
||||
import { withTranslation } from "react-i18next";
|
||||
import { isMobileOnly } from "react-device-detect";
|
||||
|
||||
const StyledComponent = styled(ModalDialog)`
|
||||
.modal-dialog-aside-footer {
|
||||
@ -65,7 +66,19 @@ const StyledComponent = styled(ModalDialog)`
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drop-down-container-hex {
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
width: 100%;
|
||||
`}
|
||||
}
|
||||
|
||||
.drop-down-item-hex {
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
width: calc(100vw - 32px);
|
||||
`}
|
||||
|
||||
:hover {
|
||||
background-color: unset;
|
||||
}
|
||||
@ -102,7 +115,8 @@ const ColorSchemeDialog = props => {
|
||||
displayType="aside"
|
||||
currentColorAccent={currentColorAccent}
|
||||
currentColorButtons={currentColorButtons}
|
||||
withFooterBorder={showSaveButtonDialog}>
|
||||
withFooterBorder={showSaveButtonDialog}
|
||||
>
|
||||
<ModalDialog.Header>{header}</ModalDialog.Header>
|
||||
<ModalDialog.Body>
|
||||
<div>
|
||||
|
@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
|
||||
import styled, { css } from "styled-components";
|
||||
import Button from "@docspace/components/button";
|
||||
import { HexColorPicker, HexColorInput } from "react-colorful";
|
||||
import { isMobile } from "react-device-detect";
|
||||
import { isMobileOnly } from "react-device-detect";
|
||||
|
||||
const StyledComponent = styled.div`
|
||||
.save-button {
|
||||
@ -30,6 +30,11 @@ const StyledComponent = styled.div`
|
||||
|
||||
.hex-color-picker .react-colorful__interactive {
|
||||
width: 183px;
|
||||
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
width: calc(100vw - 76px);
|
||||
`}
|
||||
}
|
||||
|
||||
.hex-color-picker .react-colorful__saturation-pointer {
|
||||
@ -87,9 +92,9 @@ const StyledComponent = styled.div`
|
||||
padding-bottom: 16px;
|
||||
width: 195px;
|
||||
|
||||
${isMobile &&
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
width: calc(100vw - 60px);
|
||||
width: calc(100vw - 64px);
|
||||
`}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user