Skip to content

Commit

Permalink
fix: label multi select
Browse files Browse the repository at this point in the history
  • Loading branch information
jacovinus committed Mar 1, 2022
1 parent ffec680 commit 85353b0
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 65 deletions.
3 changes: 2 additions & 1 deletion src/actions/loadLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export default function loadLogs() {
}

if (type === "matrix") {
dispatch(setMatrixData(result || []));
const idResult = result.map( m => ({...m,id:nanoid()}))
dispatch(setMatrixData(idResult || []));
dispatch(setLoading(false));
}
dispatch(setLoading(false));
Expand Down
16 changes: 2 additions & 14 deletions src/plugins/charts/ChartLabelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const ChartLabel = styled("div")`
font-family: sans-serif;
display: flex;
align-items: center;
margin: 2px;
padding: 4px;
padding-right: 10px;
cursor: pointer;
opacity: ${(props) => (!props.isVisible ? "1" : ".5")};
border-radius: 3px;
Expand All @@ -38,18 +38,6 @@ const ChartLabel = styled("div")`
}
`;

const SearchButton = styled(FindReplaceIcon)`
color: orange;
font-size: 16px;
background: #222;
padding: 2px;
border-radius: 2px;
margin-left: 2px;
opacity: 0.5;
&:hover {
opacity: 1;
}
`;

const ColorLabel = styled("div")`
height: 4px;
Expand Down
Loading

0 comments on commit 85353b0

Please sign in to comment.