Skip to content
Snippets Groups Projects
Commit 7cf8fd80 authored by GyDi's avatar GyDi
Browse files

feat: use paper for list bg

parent 1a51062a
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ const SettingClash = ({ onError }: Props) => { ...@@ -40,7 +40,7 @@ const SettingClash = ({ onError }: Props) => {
}; };
return ( return (
<List sx={{ borderRadius: 1, boxShadow: 2, mt: 3 }}> <List>
<ListSubheader>Clash设置</ListSubheader> <ListSubheader>Clash设置</ListSubheader>
<SettingItem> <SettingItem>
......
...@@ -31,7 +31,7 @@ const SettingVerge = ({ onError }: Props) => { ...@@ -31,7 +31,7 @@ const SettingVerge = ({ onError }: Props) => {
}; };
return ( return (
<List sx={{ borderRadius: 1, boxShadow: 2 }}> <List>
<ListSubheader>通用设置</ListSubheader> <ListSubheader>通用设置</ListSubheader>
<SettingItem> <SettingItem>
......
import useSWR from "swr"; import useSWR from "swr";
import { Box, List, Typography } from "@mui/material"; import { Box, List, Paper, Typography } from "@mui/material";
import services from "../services"; import services from "../services";
import ProxyGroup from "../components/proxy-group"; import ProxyGroup from "../components/proxy-group";
...@@ -14,11 +14,13 @@ const ProxyPage = () => { ...@@ -14,11 +14,13 @@ const ProxyPage = () => {
</Typography> </Typography>
{groups.length > 0 && ( {groups.length > 0 && (
<List sx={{ borderRadius: 1, boxShadow: 2 }}> <Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
{groups.map((group) => ( <List>
<ProxyGroup key={group.name} group={group} /> {groups.map((group) => (
))} <ProxyGroup key={group.name} group={group} />
</List> ))}
</List>
</Paper>
)} )}
</Box> </Box>
); );
......
import { Box, Typography } from "@mui/material"; import { Box, Paper, Typography } from "@mui/material";
import SettingVerge from "../components/setting-verge"; import SettingVerge from "../components/setting-verge";
import SettingClash from "../components/setting-clash"; import SettingClash from "../components/setting-clash";
...@@ -9,9 +9,13 @@ const SettingPage = () => { ...@@ -9,9 +9,13 @@ const SettingPage = () => {
Setting Setting
</Typography> </Typography>
<SettingVerge /> <Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
<SettingVerge />
</Paper>
<SettingClash /> <Paper sx={{ borderRadius: 1, boxShadow: 2, mt: 3 }}>
<SettingClash />
</Paper>
</Box> </Box>
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment