diff --git a/src/components/profile/profile-box.tsx b/src/components/profile/profile-box.tsx
index 97736636..f604661a 100644
--- a/src/components/profile/profile-box.tsx
+++ b/src/components/profile/profile-box.tsx
@@ -21,23 +21,34 @@ export const ProfileBox = styled(Box)(
"dark-false": text.primary,
}[key]!;
- const borderLeft = {
- "light-true": `3px solid ${primary.main}`,
- "light-false": "none",
- "dark-true": `3px solid ${primary.main}`,
- "dark-false": "none",
+ const borderSelect = {
+ "light-true": {
+ borderLeft: `3px solid ${primary.main}`,
+ width: `calc(100% + 3px)`,
+ marginLeft: `-3px`,
+ },
+ "light-false": {
+ width: "100%",
+ },
+ "dark-true": {
+ borderLeft: `3px solid ${primary.main}`,
+ width: `calc(100% + 3px)`,
+ marginLeft: `-3px`,
+ },
+ "dark-false": {
+ width: "100%",
+ },
}[key];
return {
position: "relative",
- width: "100%",
display: "block",
cursor: "pointer",
textAlign: "left",
padding: "8px 16px",
boxSizing: "border-box",
backgroundColor,
- borderLeft,
+ ...borderSelect,
borderRadius: "8px",
color,
"& h2": { color: h2color },
diff --git a/src/components/proxy/proxy-render.tsx b/src/components/proxy/proxy-render.tsx
index 5688e9e6..ea164b6b 100644
--- a/src/components/proxy/proxy-render.tsx
+++ b/src/components/proxy/proxy-render.tsx
@@ -113,7 +113,7 @@ export const ProxyRender = (props: RenderProps) => {
if (type === 1 && !group.hidden) {
return (
onLocation(group)}
@@ -130,7 +130,7 @@ export const ProxyRender = (props: RenderProps) => {
proxy={proxy!}
selected={group.now === proxy?.name}
showType={headState?.showType}
- sx={{ py: 0, pl: indent ? 4 : 2 }}
+ sx={{ py: 0, pl: 1 }}
onClick={() => onChangeProxy(group, proxy!)}
/>
);
@@ -141,7 +141,7 @@ export const ProxyRender = (props: RenderProps) => {
{
height: 56,
display: "grid",
gap: 1,
- pl: indent ? 4 : 2,
+ pl: 2,
pr: 2,
pb: 1,
gridTemplateColumns: `repeat(${item.col! || 2}, 1fr)`,
diff --git a/src/pages/connections.tsx b/src/pages/connections.tsx
index 66e0bb13..e257cfab 100644
--- a/src/pages/connections.tsx
+++ b/src/pages/connections.tsx
@@ -125,7 +125,7 @@ const ConnectionsPage = () => {
title={t("Connections")}
contentStyle={{ height: "100%" }}
header={
-
+
Download: {parseTraffic(download)}
Upload: {parseTraffic(upload)}
{
title={t("Logs")}
contentStyle={{ height: "100%" }}
header={
-
+
{
+
{
+