style: fix styles

This commit is contained in:
MystiPanda
2024-03-10 23:45:23 +08:00
parent 2ecae40130
commit 7186575cb1
9 changed files with 147 additions and 82 deletions

View File

@@ -38,6 +38,7 @@ export const ConnectionItem = (props: Props) => {
return (
<ListItem
dense
sx={{ borderBottom: "1px solid var(--divider-color)" }}
secondaryAction={
<IconButton edge="end" color="inherit" onClick={onDelete}>
<CloseRounded />

View File

@@ -7,6 +7,7 @@ import {
updateProxy,
deleteConnection,
} from "@/services/api";
import { Box } from "@mui/material";
import { useProfiles } from "@/hooks/use-profiles";
import { useVerge } from "@/hooks/use-verge";
import { BaseEmpty } from "../base";
@@ -117,7 +118,7 @@ export const ProxyGroups = (props: Props) => {
return (
<Virtuoso
ref={virtuosoRef}
style={{ height: "100%" }}
style={{ height: "calc(100% - 12px)" }}
totalCount={renderList.length}
increaseViewportBy={256}
itemContent={(index) => (

View File

@@ -34,7 +34,7 @@ const RuleItem = (props: Props) => {
const { index, value } = props;
return (
<Item>
<Item sx={{ borderBottom: "1px solid var(--divider-color)" }}>
<Typography
color="text.secondary"
variant="body2"