Skip to content

Commit

Permalink
fix: adjust item ui
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Nov 23, 2022
1 parent f477cec commit 790d832
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/components/log/log-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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>
);
};
Expand Down
3 changes: 1 addition & 2 deletions src/components/rule/rule-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 790d832

Please sign in to comment.