fix: adjust item ui

This commit is contained in:
GyDi committed 2022-11-23 15:29:42 +08:00
1 parent 8e3ff7670b
commit 3a77c6f7eb
2 files changed
+9 -6

No files matched your search

+8 -4
View File
@@ -10,7 +10,7 @@ const Item = styled(Box)(({ theme }) => ({
"& .time": {},
"& .type": {
display: "inline-block",
padding: "0 6px",
marginLeft: 8,
textAlign: "center",
borderRadius: 2,
textTransform: "uppercase",
@@ -28,9 +28,13 @@ const LogItem = (props: Props) => {
return (
<Item>
<span className="time">{value.time}</span>
<span className="type">{value.type}</span>
<span className="data">{value.payload}</span>
<div>
<span className="time">{value.time}</span>
<span className="type">{value.type}</span>
</div>
<div>
<span className="data">{value.payload}</span>
</div>
</Item>
);
};
+1 -2
View File
@@ -2,9 +2,8 @@ import { styled, Box, Typography } from "@mui/material";
const Item = styled(Box)(({ theme }) => ({
display: "flex",
padding: "6px 16px",
padding: "4px 16px",
color: theme.palette.text.primary,
marginBottom: "6px",
}));
const COLOR = [