Skip to content

Commit

Permalink
allow deeper json objects by stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Feb 13, 2025
1 parent 2bd6b40 commit fae5bf5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/CippFormPages/CippJSONView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,17 @@ function CippJsonView({
<CippCodeBlock type="editor" code={JSON.stringify(cleanObject(object), null, 2)} />
) : (
<Grid container spacing={2}>
{drilldownData.slice(0, 4).map((data, index) => (
{drilldownData?.map((data, index) => (
<Grid
item
xs={12}
sm={type === "intune" ? 12 : 3}
key={index}
sx={{
borderRight: index < 3 && type !== "intune" ? "1px solid lightgrey" : "none",
//give a top border if the item is > 4, and add spacing between the top and bottom items
paddingTop: index === 0 ? 0 : 2,
borderTop: index >= 4 && type !== "intune" ? "1px solid lightgrey" : "none",
borderRight: index < drilldownData.length - 1 ? "1px solid lightgrey" : "none",
overflowWrap: "anywhere",
whiteSpace: "pre-line",
paddingRight: 2,
Expand Down

0 comments on commit fae5bf5

Please sign in to comment.