fix(files): fixed resource spacing on files directories pages#4618
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Bumps Reviewed by Cursor Bugbot for commit 53dbcc0. Configure here. |
Greptile SummaryThis PR fixes a visual spacing issue on the files/directories pages by replacing a fractional weight for the checkbox column (
Confidence Score: 5/5Safe to merge — the change is a straightforward visual fix scoped entirely to the colgroup width calculation. The column width math is correct: the checkbox column is pinned to 52px, each data column subtracts its proportional share of that 52px via calc(), and the total always sums to 100%. The turbo bump is a minor version update with no API changes. No logic paths outside of rendering are affected. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[ResourceColGroup] --> B{hasCheckbox?}
B -- Yes --> C["col width=52px fixed"]
B -- Yes --> D["For each data column:\ncolumnRatio = weight / total\ncolumnPercent = ratio x 100\ncheckboxOffset = 52 x ratio\nwidth = calc(columnPercent% - checkboxOffset px)"]
B -- No --> E["For each data column:\nwidth = columnPercent%"]
C --> F["Columns sum: 52px + (100% - 52px) = 100%"]
D --> F
E --> G["Columns sum: 100%"]
Reviews (2): Last reviewed commit: "fix(build): align turbo schema version" | Re-trigger Greptile |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 53dbcc0. Configure here.
Summary
Type of Change
Testing
Tested manually
Checklist