diff --git a/.stylelintrc.js b/.stylelintrc.js index 8405bc6df7..8e4e085fe4 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -13,6 +13,10 @@ module.exports = { // 'stylelint-config-prettier' ], rules: { + "selector-pseudo-class-no-unknown": [ + true, + { ignorePseudoClasses: ["global"] }, + ], "font-family-name-quotes": null, "font-family-no-missing-generic-family-keyword": null, "max-nesting-depth": [ @@ -24,7 +28,7 @@ module.exports = { "declaration-block-no-duplicate-properties": true, "no-duplicate-selectors": true, "no-descending-specificity": null, - "selector-class-pattern": "^([a-z][a-z0-9]*)((-|__)[a-z0-9]+)*$", + "selector-class-pattern": null, "value-no-vendor-prefix": [true, { ignoreValues: ["box"] }], "at-rule-no-unknown": [ true, diff --git a/src/components/base/base-dialog.module.scss b/src/components/base/base-dialog.module.scss new file mode 100644 index 0000000000..e0ca825020 --- /dev/null +++ b/src/components/base/base-dialog.module.scss @@ -0,0 +1,5 @@ +.basePageTransition { + :global(.MuiDialog-paper) { + max-height: calc(100vh - 64px); + } +} diff --git a/src/components/base/base-dialog.tsx b/src/components/base/base-dialog.tsx index dfe428e38c..55b8623f7b 100644 --- a/src/components/base/base-dialog.tsx +++ b/src/components/base/base-dialog.tsx @@ -1,3 +1,4 @@ +import { classNames } from "@/utils"; import { LoadingButton } from "@mui/lab"; import { Button, @@ -11,6 +12,8 @@ import { import { TransitionProps } from "@mui/material/transitions"; import { AnimatePresence, motion } from "framer-motion"; import React, { ReactNode } from "react"; +import styles from "./base-dialog.module.scss"; + interface Props { title: ReactNode; open: boolean; @@ -50,7 +53,6 @@ export function BaseDialog(props: Props) { return ( {inProp && (