<div className="huge-spacer-bottom">
<div className="display-flex-column big-spacer-bottom">
<div className="big text-bold">{message}</div>
- <div>
+ <div className="spacer-top">
<span className="note padded-right">{rule.name}</span>
<Link className="small" to={getRuleUrl(rule.key)} target="_blank">
{rule.key}
/>
<div className="display-flex-end">
<div className="display-inline-flex-center it__hs-assignee">
- <div className="text-bold big-spacer-right">{`${translate('assignee')}: `}</div>
+ <div className="big-spacer-right">{`${translate('assignee')}: `}</div>
<Assignee hotspot={hotspot} onAssigneeChange={props.onUpdateHotspot} />
</div>
</div>
hotspotsTotal
)}
</h1>
- <ul className="big-spacer-bottom">
+ <ul className="big-spacer-bottom big-spacer-top">
{groupedHotspots.map((riskGroup, riskGroupIndex) => {
const isLastRiskGroup = riskGroupIndex === groupedHotspots.length - 1;
return (
<li className="big-spacer-bottom" key={riskGroup.risk}>
- <div className="hotspot-risk-header little-spacer-left">
+ <div className="hotspot-risk-header little-spacer-left spacer-top spacer-bottom">
<span>{translate('hotspots.risk_exposure')}:</span>
<div className={classNames('hotspot-risk-badge', 'spacer-left', riskGroup.risk)}>
{translate('risk_exposure', riskGroup.risk)}
role={selected ? 'button' : undefined}>
{hotspot.message}
</div>
- <div className="display-flex-center">
+ <div className="display-flex-center big-spacer-top">
<QualifierIcon qualifier={ComponentQualifier.File} />
- <div
- className="little-spacer-left hotspot-box-filename text-ellipsis big-spacer-top big-spacer-bottom"
- title={path}>
+ <div className="little-spacer-left hotspot-box-filename text-ellipsis" title={path}>
{path}
</div>
</div>
- <div className="spacer-top">
- {selected && (
- <LocationsList
- locations={locations}
- isCrossFile={false} // Currently we are not supporting cross file for security hotspot
- uniqueKey={hotspot.key}
- onLocationSelect={props.onLocationClick}
- selectedLocationIndex={selectedHotspotLocation}
- scroll={props.onScroll}
- />
- )}
- </div>
+ {selected && (
+ <LocationsList
+ locations={locations}
+ isCrossFile={false} // Currently we are not supporting cross file for security hotspot
+ uniqueKey={hotspot.key}
+ onLocationSelect={props.onLocationClick}
+ selectedLocationIndex={selectedHotspotLocation}
+ scroll={props.onScroll}
+ />
+ )}
</a>
);
}
max-height: calc(100vh - 500px);
overflow: auto;
}
+
+.hotspot-content .markdown {
+ line-height: 1.8;
+}
>
'3' is a magic number.
</div>
- <div>
+ <div
+ className="spacer-top"
+ >
<span
className="note padded-right"
>
className="display-inline-flex-center it__hs-assignee"
>
<div
- className="text-bold big-spacer-right"
+ className="big-spacer-right"
>
assignee:
</div>
hotspots.list_title.TO_REVIEW.0
</h1>
<ul
- className="big-spacer-bottom"
+ className="big-spacer-bottom big-spacer-top"
/>
<ListFooter
count={0}
hotspots.list_title.TO_REVIEW.0
</h1>
<ul
- className="big-spacer-bottom"
+ className="big-spacer-bottom big-spacer-top"
/>
<ListFooter
count={0}
hotspots.list_title.0
</h1>
<ul
- className="big-spacer-bottom"
+ className="big-spacer-bottom big-spacer-top"
/>
<ListFooter
count={0}
hotspots.list_title.TO_REVIEW.5
</h1>
<ul
- className="big-spacer-bottom"
+ className="big-spacer-bottom big-spacer-top"
>
<li
className="big-spacer-bottom"
key="HIGH"
>
<div
- className="hotspot-risk-header little-spacer-left"
+ className="hotspot-risk-header little-spacer-left spacer-top spacer-bottom"
>
<span>
hotspots.risk_exposure
key="MEDIUM"
>
<div
- className="hotspot-risk-header little-spacer-left"
+ className="hotspot-risk-header little-spacer-left spacer-top spacer-bottom"
>
<span>
hotspots.risk_exposure
hotspots.list_title.TO_REVIEW.7
</h1>
<ul
- className="big-spacer-bottom"
+ className="big-spacer-bottom big-spacer-top"
>
<li
className="big-spacer-bottom"
key="HIGH"
>
<div
- className="hotspot-risk-header little-spacer-left"
+ className="hotspot-risk-header little-spacer-left spacer-top spacer-bottom"
>
<span>
hotspots.risk_exposure
key="MEDIUM"
>
<div
- className="hotspot-risk-header little-spacer-left"
+ className="hotspot-risk-header little-spacer-left spacer-top spacer-bottom"
>
<span>
hotspots.risk_exposure
'3' is a magic number.
</div>
<div
- className="display-flex-center"
+ className="display-flex-center big-spacer-top"
>
<QualifierIcon
qualifier="FIL"
/>
<div
- className="little-spacer-left hotspot-box-filename text-ellipsis big-spacer-top big-spacer-bottom"
+ className="little-spacer-left hotspot-box-filename text-ellipsis"
title="com.github.kevinsawicki.http.HttpRequest"
>
com.github.kevinsawicki.http.HttpRequest
</div>
</div>
- <div
- className="spacer-top"
- />
</a>
`;
'3' is a magic number.
</div>
<div
- className="display-flex-center"
+ className="display-flex-center big-spacer-top"
>
<QualifierIcon
qualifier="FIL"
/>
<div
- className="little-spacer-left hotspot-box-filename text-ellipsis big-spacer-top big-spacer-bottom"
+ className="little-spacer-left hotspot-box-filename text-ellipsis"
title="com.github.kevinsawicki.http.HttpRequest"
>
com.github.kevinsawicki.http.HttpRequest
</div>
</div>
- <div
- className="spacer-top"
- >
- <LocationsList
- isCrossFile={false}
- locations={Array []}
- onLocationSelect={[Function]}
- scroll={[MockFunction]}
- uniqueKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
- />
- </div>
+ <LocationsList
+ isCrossFile={false}
+ locations={Array []}
+ onLocationSelect={[Function]}
+ scroll={[MockFunction]}
+ uniqueKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
+ />
</a>
`;
{showTitle && `${translate('status')}: `}
<div className="badge">{translate('hotspots.status_option', statusOption)}</div>
</h3>
- <span>{translate('hotspots.status_option', statusOption, 'description')}</span>
+ <div className="little-spacer-top">
+ {translate('hotspots.status_option', statusOption, 'description')}
+ </div>
</Container>
);
}
hotspots.status_option.TO_REVIEW
</div>
</h3>
- <span>
+ <div
+ className="little-spacer-top"
+ >
hotspots.status_option.TO_REVIEW.description
- </span>
+ </div>
</Styled(div)>
`;
hotspots.status_option.TO_REVIEW
</div>
</h3>
- <span>
+ <div
+ className="little-spacer-top"
+ >
hotspots.status_option.TO_REVIEW.description
- </span>
+ </div>
</Styled(div)>
`;