Skip to content

Commit 413840d

Browse files
committed
fix no data paddings to avoid content cut off
1 parent 8f243a5 commit 413840d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pages/04-migration/cartesian-chart-type-area.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const TotalFooterGuidance = (
2323
return (
2424
<div style={{ display: "flex", justifyContent: "space-between", gap: "16px" }}>
2525
<span>Total</span>
26-
<span>{numberFormatter(detail.items.reduce((sum, item) => sum + (item.type === "point" ? item.y : 0), 0))}</span>
26+
<span>{numberFormatter(detail.items.reduce((sum, item) => sum + (item.y ?? 0), 0))}</span>
2727
</div>
2828
);
2929
},

src/core/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ $side-legend-min-inline-size: max(20%, 150px);
3030

3131
.no-data {
3232
overflow: hidden;
33-
padding-block: cs.$space-static-xs;
34-
padding-inline: cs.$space-static-m;
3533
background-color: cs.$color-background-container-content;
3634
border-radius: 8px;
3735
border: 1px solid cs.$color-border-divider-default;
@@ -52,6 +50,8 @@ $side-legend-min-inline-size: max(20%, 150px);
5250
.no-data-content {
5351
overflow-x: auto;
5452
overflow-y: hidden;
53+
padding-block: cs.$space-static-xs;
54+
padding-inline: cs.$space-static-m;
5555
}
5656

5757
.chart-filters {

src/internal/chart-styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const thresholdPlotLine: Partial<Highcharts.XAxisPlotLinesOptions | Highc
176176
export const chatPlotBaseline: Partial<Highcharts.XAxisPlotLinesOptions> = {
177177
color: colorChartsLineTick,
178178
width: 2,
179-
zIndex: 3,
179+
zIndex: 2,
180180
};
181181

182182
export const innerAreaTitleCss: Highcharts.CSSObject = {

0 commit comments

Comments
 (0)