fix(table): prevent unnecessary scrollbar in table body
User description
This PR fixes an issue where the table body always displayed a vertical scrollbar, even when there was no overflow content.
-
Changed .tableBody height from 100% to calc(100% - var(--table-row-size))
-
This adjustment ensures the table body height accounts for the header row and only shows the scrollbar when needed
-
Tested locally in Storybook to confirm that the scrollbar now only appears when the content exceeds the available space
-
[x] I have read the Contribution Guide for this project.
Resolves #3127
PR Type
Bug fix
Description
-
Fixed unnecessary vertical scrollbar in table body
-
Adjusted height calculation to account for header row
-
Scrollbar now only appears when content overflows
Diagram Walkthrough
flowchart LR
A["Table Container"] --> B["Header Row"]
A --> C["Table Body"]
B -- "var(--table-row-size)" --> D["Height Calculation"]
D --> C
C --> E["Conditional Scrollbar"]
File Walkthrough
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
|
🎫 Ticket compliance analysis 🔶 3127 - Partially compliant Compliant requirements:
Non-compliant requirements:
Requires further human verification:
|
| ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪ |
| 🧪 No relevant tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewPossible Regression
|