Skip to content
Snippets Groups Projects
Unverified Commit 790d8321 authored by GyDi's avatar GyDi
Browse files

fix: adjust item ui

parent f477cecd
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ const Item = styled(Box)(({ theme }) => ({ ...@@ -10,7 +10,7 @@ const Item = styled(Box)(({ theme }) => ({
"& .time": {}, "& .time": {},
"& .type": { "& .type": {
display: "inline-block", display: "inline-block",
padding: "0 6px", marginLeft: 8,
textAlign: "center", textAlign: "center",
borderRadius: 2, borderRadius: 2,
textTransform: "uppercase", textTransform: "uppercase",
...@@ -28,9 +28,13 @@ const LogItem = (props: Props) => { ...@@ -28,9 +28,13 @@ const LogItem = (props: Props) => {
return ( return (
<Item> <Item>
<span className="time">{value.time}</span> <div>
<span className="type">{value.type}</span> <span className="time">{value.time}</span>
<span className="data">{value.payload}</span> <span className="type">{value.type}</span>
</div>
<div>
<span className="data">{value.payload}</span>
</div>
</Item> </Item>
); );
}; };
......
...@@ -2,9 +2,8 @@ import { styled, Box, Typography } from "@mui/material"; ...@@ -2,9 +2,8 @@ import { styled, Box, Typography } from "@mui/material";
const Item = styled(Box)(({ theme }) => ({ const Item = styled(Box)(({ theme }) => ({
display: "flex", display: "flex",
padding: "6px 16px", padding: "4px 16px",
color: theme.palette.text.primary, color: theme.palette.text.primary,
marginBottom: "6px",
})); }));
const COLOR = [ const COLOR = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment