Fix simulation-chart missing day separator lines
This commit is contained in:
@@ -609,7 +609,7 @@ const SimulationChart = React.memo(({
|
|||||||
style={{ stroke: isDarkTheme ? '#666' : '#ccc' }}
|
style={{ stroke: isDarkTheme ? '#666' : '#ccc' }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{showDayReferenceLines !== false && [...Array(dispDays + 1).keys()].map(day => {
|
{showDayReferenceLines !== false && [...Array(simDays).keys()].map(day => {
|
||||||
// Determine whether to use compact day labels to avoid overlap on narrow screens
|
// Determine whether to use compact day labels to avoid overlap on narrow screens
|
||||||
const pxPerDay = scrollableWidth / Math.max(1, dispDays);
|
const pxPerDay = scrollableWidth / Math.max(1, dispDays);
|
||||||
let label = "";
|
let label = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user