mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
feat: Show proxies count for provider
This commit is contained in:
parent
54b46dfad9
commit
51ce3a1e42
@ -108,6 +108,9 @@ export const ProviderButton = () => {
|
|||||||
>
|
>
|
||||||
{key}
|
{key}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<TypeBox component="span" sx={{ marginLeft: "8px" }}>
|
||||||
|
{item.proxies.length}
|
||||||
|
</TypeBox>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
secondary={
|
secondary={
|
||||||
@ -158,6 +161,17 @@ export const ProviderButton = () => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
const TypeBox = styled(Box)(({ theme }) => ({
|
||||||
|
display: "inline-block",
|
||||||
|
border: "1px solid #ccc",
|
||||||
|
borderColor: alpha(theme.palette.secondary.main, 0.5),
|
||||||
|
color: alpha(theme.palette.secondary.main, 0.8),
|
||||||
|
borderRadius: 4,
|
||||||
|
fontSize: 10,
|
||||||
|
marginRight: "4px",
|
||||||
|
padding: "0 2px",
|
||||||
|
lineHeight: 1.25,
|
||||||
|
}));
|
||||||
|
|
||||||
const StyledTypeBox = styled(Box)(({ theme }) => ({
|
const StyledTypeBox = styled(Box)(({ theme }) => ({
|
||||||
display: "inline-block",
|
display: "inline-block",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user