diff --git a/src/pages/css_minifier.tsx b/src/pages/css_minifier.tsx index df50bec..725ba8b 100644 --- a/src/pages/css_minifier.tsx +++ b/src/pages/css_minifier.tsx @@ -1,10 +1,10 @@ -import MainContent from '@/components/MainContent'; import alert from '@/components/Alert'; +import MainContent from '@/components/MainContent'; import { Box, Button, Checkbox, Stack, Typography } from '@mui/material'; +import CleanCSS, { type Options } from 'clean-css'; import { useCallback, useEffect, useState } from 'react'; import AceEditor from 'react-ace'; import { CopyToClipboard } from 'react-copy-to-clipboard'; -import CleanCSS, { type Options } from 'clean-css'; import 'ace-builds/src-noconflict/ext-language_tools'; import 'ace-builds/src-noconflict/mode-css'; @@ -91,103 +91,94 @@ const _C = () => { }} > - - CSS 内容 - - - + + + + + + + 压缩结果 + + setKeepBreaks(event.target.checked)} + /> + - 上传 CSS - + 压缩保留换行 + - - - 压缩结果 - - setKeepBreaks(event.target.checked)} - /> - - 压缩保留换行 - - - - - - - - - - - - - - + + + + { }, }} > + { - - - - + json @@ -179,8 +179,22 @@ const _C = () => { }, }} > + { - - - - + Less @@ -175,8 +175,22 @@ const _C = () => { }, }} > + { - - - - + markdown @@ -196,8 +196,22 @@ const _C = () => { }, }} > + { - - - - +