Skip to content

Commit 5824467

Browse files
author
Nils Kreiner
committed
added cve description to the details page
1 parent 09d1739 commit 5824467

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

frontend/src/components/InfoBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const boxProps = (headerComponent: React.ReactNode) => {
3131
display: "flex",
3232
flexDirection: "column",
3333
alignItems: "center",
34-
justifyContent: "center",
34+
justifyContent: "start",
3535
backgroundColor: mainTheme.palette.primary.main,
3636
borderRadius: "0.5rem",
3737
paddingTop: headerComponent === undefined ? "2rem" : 0,

frontend/src/page/ReportPage.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ const ReportPage: React.FunctionComponent = () => {
482482
</>
483483
}/>
484484
</Grid>
485-
<Grid item md={9}>
485+
<Grid item md={4.5}>
486486
<InfoBox component={
487487
<>
488488
<Typography color={mainTheme.palette.primary.contrastText}
@@ -504,7 +504,7 @@ const ReportPage: React.FunctionComponent = () => {
504504
"flexWrap": "wrap",
505505
"justifyContent": "space-evenly"
506506
}}>
507-
<Grid item md={8}>
507+
<Grid item md={7}>
508508
<Tooltip
509509

510510
title={
@@ -526,14 +526,14 @@ const ReportPage: React.FunctionComponent = () => {
526526
}}/>
527527
</Tooltip>
528528
</Grid>
529-
<Grid item md={3} sx={{
529+
<Grid item md={4.5} sx={{
530530
"display": "flex",
531531
"alignItems": "space-between",
532532
"height": "100%",
533533
"flexWrap": "wrap"
534534
}}>
535535
<Typography color={mainTheme.palette.primary.contrastText}
536-
variant="h5"
536+
variant="h6"
537537
width={"100%"}>{localization.ReportDetailPage.cvssVectorString}</Typography>
538538
<TextField
539539
style={textfieldStyle}
@@ -551,6 +551,17 @@ const ReportPage: React.FunctionComponent = () => {
551551
</>
552552
}/>
553553
</Grid>
554+
<Grid item md={4.5}>
555+
<InfoBox
556+
component={
557+
<>
558+
<Typography color={mainTheme.palette.primary.contrastText}
559+
variant="h4" align={"center"}>{localization.ReportDetailPage.infosFound.detailedDescriptionTitle}</Typography>
560+
<Typography style={{paddingLeft: "1rem", paddingRight: "1rem"}} color={"white"}
561+
variant="body1" align={"left"}>{data?.data.report.cveObject.description}</Typography>
562+
</>
563+
}/>
564+
</Grid>
554565
<Grid item md={3}>
555566
<Box sx={{"height": "100%"}}>
556567
<InfoBox component={

frontend/src/utilities/localization.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const language = {
115115
commentPlaceholder: "Kommentieren...",
116116
infosFound:{
117117
infosFoundTitle: "Folgende Informationen gefunden...",
118-
detailedDescription: "Detaillierte Beschreibung:",
118+
detailedDescriptionTitle: "Detaillierte Beschreibung",
119119
suggestedSolutions: "Vorgeschlagene Lösungen",
120120
mendIo: "Mend.io:",
121121
aquaSec: "AquaSec:",
@@ -428,7 +428,7 @@ const language = {
428428
commentPlaceholder: "Comment...",
429429
infosFound:{
430430
infosFoundTitle: "Found information...",
431-
detailedDescription: "Detailed description:",
431+
detailedDescriptionTitle: "Detailed description",
432432
suggestedSolutions: "Suggested solutions",
433433
mendIo: "Mend.io:",
434434
aquaSec: "AquaSec:",

0 commit comments

Comments
 (0)