Skip to content

Commit b0b859c

Browse files
[frontend] Align audit drawer view (#8237)
1 parent 161d009 commit b0b859c

File tree

1 file changed

+4
-8
lines changed
  • opencti-platform/opencti-front/src/private/components/settings/activity/audit

1 file changed

+4
-8
lines changed

opencti-platform/opencti-front/src/private/components/settings/activity/audit/AuditDrawer.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ const AuditDrawerContent: FunctionComponent<{ logId: string }> = ({ logId }) =>
7070

7171
return (
7272
<>
73-
<div>
73+
<Paper variant="outlined" style={{ padding: 15, backgroundColor: theme.palette.background.paper, borderColor: theme.palette.primary.main }}>
7474
<Typography variant="h4" gutterBottom={true}>
7575
{t_i18n('Message')}
7676
</Typography>
7777
<b>{data?.audit?.user?.name}</b> {message}
78-
</div>
78+
</Paper>
7979
{log.context_uri && (
8080
<div style={{ marginTop: 16 }}>
8181
<Typography variant="h4" gutterBottom={true}>
@@ -108,9 +108,7 @@ const AuditDrawerContent: FunctionComponent<{ logId: string }> = ({ logId }) =>
108108
? row.changes_removed.map((s, i: number) => {
109109
return (
110110
<div key={i}>
111-
<pre style={{ marginBottom: 4, color: theme.palette.text?.secondary }}>
112-
<TruncatedRawValue value={s} />
113-
</pre>
111+
<TruncatedRawValue value={s} />
114112
</div>
115113
);
116114
})
@@ -121,9 +119,7 @@ const AuditDrawerContent: FunctionComponent<{ logId: string }> = ({ logId }) =>
121119
? row.changes_added.map((s, i: number) => {
122120
return (
123121
<div key={i}>
124-
<pre style={{ marginBottom: 4, color: theme.palette.text?.secondary }}>
125-
<TruncatedRawValue value={s} />
126-
</pre>
122+
<TruncatedRawValue value={s} />
127123
</div>
128124
);
129125
})

0 commit comments

Comments
 (0)