|
@@ -95,7 +95,32 @@ export const ProxyItemMini = (props: Props) => {
|
|
</Typography>
|
|
</Typography>
|
|
|
|
|
|
{showType && (
|
|
{showType && (
|
|
- <Box sx={{ display: "flex", flexWrap: "nowrap", flex: "none" }}>
|
|
|
|
|
|
+ <Box
|
|
|
|
+ sx={{
|
|
|
|
+ display: "flex",
|
|
|
|
+ flexWrap: "nowrap",
|
|
|
|
+ flex: "none",
|
|
|
|
+ marginTop: "4px",
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ {proxy.now && (
|
|
|
|
+ <Typography
|
|
|
|
+ variant="body2"
|
|
|
|
+ component="div"
|
|
|
|
+ color="text.secondary"
|
|
|
|
+ sx={{
|
|
|
|
+ display: "block",
|
|
|
|
+ textOverflow: "ellipsis",
|
|
|
|
+ wordBreak: "break-all",
|
|
|
|
+ overflow: "hidden",
|
|
|
|
+ whiteSpace: "nowrap",
|
|
|
|
+ fontSize: "0.75rem",
|
|
|
|
+ marginRight: "8px",
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ {proxy.now}
|
|
|
|
+ </Typography>
|
|
|
|
+ )}
|
|
{!!proxy.provider && (
|
|
{!!proxy.provider && (
|
|
<TypeBox component="span">{proxy.provider}</TypeBox>
|
|
<TypeBox component="span">{proxy.provider}</TypeBox>
|
|
)}
|
|
)}
|
|
@@ -181,6 +206,16 @@ const TypeBox = styled(Box)(({ theme: { palette, typography } }) => ({
|
|
fontSize: 10,
|
|
fontSize: 10,
|
|
fontFamily: typography.fontFamily,
|
|
fontFamily: typography.fontFamily,
|
|
marginRight: "4px",
|
|
marginRight: "4px",
|
|
|
|
+ marginTop: "auto",
|
|
|
|
+ padding: "0 2px",
|
|
|
|
+ lineHeight: 1.25,
|
|
|
|
+}));
|
|
|
|
+
|
|
|
|
+const TypeTypo = styled(Box)(({ theme: { palette, typography } }) => ({
|
|
|
|
+ display: "inline-block",
|
|
|
|
+ fontSize: 10,
|
|
|
|
+ fontFamily: typography.fontFamily,
|
|
|
|
+ marginRight: "4px",
|
|
padding: "0 2px",
|
|
padding: "0 2px",
|
|
lineHeight: 1.25,
|
|
lineHeight: 1.25,
|
|
}));
|
|
}));
|