Skip to content

Commit d312e79

Browse files
[TC-1820] - dashboard] - The SBOM bar chart legend is overlapping the bar chart meta data (trustification#1854)
* Move dashboard-barchart legend and add class wrapper to chart * Remove comments
1 parent 43c23ba commit d312e79

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

spog/ui/crates/donut/js/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spog/ui/crates/donut/patternfly-charts/src/SbomStackChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const SbomStackChartRenderer = (htmlElement: HTMLElement, props: StackCha
7474
legendComponent={
7575
<ChartLegend
7676
y={10}
77+
x={300}
7778
colorScale={[
7879
criticalColor.var,
7980
highColor.var,

spog/ui/src/pages/index.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ pub fn index() -> Html {
122122
{"Below is a summary of CVE status for your last 10 ingested SBOMs. You can click on the SBOM name or CVE severity number below to be taken to their respective details page."}
123123
</StackItem>
124124
<StackItem>
125-
<LastSbomsChart />
125+
<div class="pf-v5-l-split">
126+
<LastSbomsChart />
127+
</div>
126128
</StackItem>
127129
</Stack>
128130
</GridItem>
@@ -180,7 +182,7 @@ pub fn last_sboms_chart() -> Html {
180182
),
181183
UseAsyncState::Ready(Ok((json, number_of_elements))) => html!(
182184
if *number_of_elements > 0usize {
183-
<SbomStackChart sboms={json.clone()} style="height: 375px; width: 800px" />
185+
<SbomStackChart sboms={json.clone()} style="height: 375px; width: 750px" />
184186
} else {
185187
<EmptyState
186188
title="No SBOMs found"

0 commit comments

Comments
 (0)