From 6337788a2231bcee397a2792e4b5169147fe99c2 Mon Sep 17 00:00:00 2001 From: GyDi Date: Wed, 14 Dec 2022 15:15:44 +0800 Subject: [PATCH] fix: proxy item style --- src/components/proxy/proxy-item-mini.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/proxy/proxy-item-mini.tsx b/src/components/proxy/proxy-item-mini.tsx index 68fcb61..fe3f499 100644 --- a/src/components/proxy/proxy-item-mini.tsx +++ b/src/components/proxy/proxy-item-mini.tsx @@ -45,7 +45,14 @@ export const ProxyItemMini = (props: Props) => { selected={selected} onClick={() => onClick?.(proxy.name)} sx={[ - { height: 56, borderRadius: 1, pl: 1.5, pr: 1 }, + { + height: 56, + borderRadius: 1, + pl: 1.5, + pr: 1, + justifyContent: "space-between", + alignItems: "center", + }, ({ palette: { mode, primary } }) => { const bgcolor = mode === "light" @@ -95,7 +102,7 @@ export const ProxyItemMini = (props: Props) => { )} - + {delay === -2 && ( @@ -151,7 +158,7 @@ export const ProxyItemMini = (props: Props) => { // 展示已选择的icon )}