Skip to content

Commit

Permalink
feat: use paper for list bg
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Dec 21, 2021
1 parent 1a51062 commit 7cf8fd8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/setting-clash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SettingClash = ({ onError }: Props) => {
};

return (
<List sx={{ borderRadius: 1, boxShadow: 2, mt: 3 }}>
<List>
<ListSubheader>Clash设置</ListSubheader>

<SettingItem>
Expand Down
2 changes: 1 addition & 1 deletion src/components/setting-verge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const SettingVerge = ({ onError }: Props) => {
};

return (
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
<List>
<ListSubheader>通用设置</ListSubheader>

<SettingItem>
Expand Down
14 changes: 8 additions & 6 deletions src/pages/proxy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useSWR from "swr";
import { Box, List, Typography } from "@mui/material";
import { Box, List, Paper, Typography } from "@mui/material";
import services from "../services";
import ProxyGroup from "../components/proxy-group";

Expand All @@ -14,11 +14,13 @@ const ProxyPage = () => {
</Typography>

{groups.length > 0 && (
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
{groups.map((group) => (
<ProxyGroup key={group.name} group={group} />
))}
</List>
<Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
<List>
{groups.map((group) => (
<ProxyGroup key={group.name} group={group} />
))}
</List>
</Paper>
)}
</Box>
);
Expand Down
10 changes: 7 additions & 3 deletions src/pages/setting.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Typography } from "@mui/material";
import { Box, Paper, Typography } from "@mui/material";
import SettingVerge from "../components/setting-verge";
import SettingClash from "../components/setting-clash";

Expand All @@ -9,9 +9,13 @@ const SettingPage = () => {
Setting
</Typography>

<SettingVerge />
<Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
<SettingVerge />
</Paper>

<SettingClash />
<Paper sx={{ borderRadius: 1, boxShadow: 2, mt: 3 }}>
<SettingClash />
</Paper>
</Box>
);
};
Expand Down

0 comments on commit 7cf8fd8

Please sign in to comment.