Skip to content

Fix for the behavior issue of the measurement graph.#815

Open
JerryVincent wants to merge 2 commits intodevfrom
fix/dataVisualization
Open

Fix for the behavior issue of the measurement graph.#815
JerryVincent wants to merge 2 commits intodevfrom
fix/dataVisualization

Conversation

@JerryVincent
Copy link
Collaborator

@JerryVincent JerryVincent commented Mar 11, 2026

Type of Change

  • Dependency upgrade
  • Bug fix (non-breaking change)
  • Breaking change
    • e.g. a fixed bug or new feature that may break something else
  • New feature
  • Code quality improvements
    • e.g. refactoring, documentation, tests, tooling, ...

Implementation

This fix addresses two issues with the measurement graph panel. First, h-full was added to the and elements in root.tsx to establish a proper full-height stacking context, which prevented the Draggable panel from collapsing and jumping to the top of the screen when the Download or Aggregation dropdowns were opened. Second, the graph panel in graph.tsx was made responsive by adding left-4 to the mobile container (so it doesn't overflow the viewport edge), applying flex-wrap and gap utilities to the header row (so the filter and action buttons wrap gracefully on smaller screens), and replacing h-full with min-h-0 flex-1 on the chart container so the chart correctly fills the remaining space within the flex column without overflowing.

Checklist

  • I gave this pull request a meaningful title
  • My pull request is targeting the dev branch
  • I have added documentation to my code
  • I have deleted code that I have commented out

Additional Information

@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.55% 1665 / 2327
🔵 Statements 69.87% 1742 / 2493
🔵 Functions 73.16% 338 / 462
🔵 Branches 58.58% 921 / 1572
File CoverageNo changed files found.
Generated in workflow #2175 for commit 1f24651 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance of data visualization in diagram with increasing measurements aggregation button on sensor details card overflows

1 participant