diff --git a/src/components/connection/connection-item.tsx b/src/components/connection/connection-item.tsx
index 5924800a..fa4a48a8 100644
--- a/src/components/connection/connection-item.tsx
+++ b/src/components/connection/connection-item.tsx
@@ -19,6 +19,7 @@ const Tag = styled("span")(({ theme }) => ({
border: "1px solid",
borderRadius: 4,
borderColor: alpha(theme.palette.text.secondary, 0.35),
+ marginTop: "4px",
marginRight: "4px",
}));
diff --git a/src/pages/connections.tsx b/src/pages/connections.tsx
index 67b1ecd2..8494427c 100644
--- a/src/pages/connections.tsx
+++ b/src/pages/connections.tsx
@@ -1,15 +1,6 @@
import { useEffect, useMemo, useRef, useState } from "react";
import { useLockFn } from "ahooks";
-import {
- Box,
- Button,
- IconButton,
- MenuItem,
- Select,
- SelectProps,
- Typography,
- styled,
-} from "@mui/material";
+import { Box, Button, IconButton, MenuItem } from "@mui/material";
import { useRecoilState } from "recoil";
import { Virtuoso } from "react-virtuoso";
import { useTranslation } from "react-i18next";
@@ -35,7 +26,7 @@ const initConn = { uploadTotal: 0, downloadTotal: 0, connections: [] };
type OrderFunc = (list: IConnectionsItem[]) => IConnectionsItem[];
const ConnectionsPage = () => {
- const { t, i18n } = useTranslation();
+ const { t } = useTranslation();
const { clashInfo } = useClashInfo();
const { theme } = useCustomTheme();
const isDark = theme.palette.mode === "dark";
@@ -160,9 +151,7 @@ const ConnectionsPage = () => {
}
@@ -212,7 +201,7 @@ const ConnectionsPage = () => {
) : (
(
+ itemContent={(_, item) => (
detailRef.current?.open(item)}