fix(web): align and space file search#4256
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved CSS-only changes adding padding and spacing to the file search UI component. Purely visual adjustments with no runtime behavior impact. You can customize Macroscope's approvability policy. Learn more. |
Dismissing prior approval to re-evaluate 4b32601
Summary
Root cause
The tree search container had no top padding, while
@pierre/treesalso defaulted to a 16px inline inset rather than the Files panel header spacing.Validation
vp fmt --check apps/web/src/components/files/FileBrowserPanel.tsxvp lint apps/web/src/components/files/FileBrowserPanel.tsxvp run --filter @t3tools/web typecheckgit diff --checkThis is a CSS-only layout change; file search behavior is unchanged.
Before:

After:

Note
Low Risk
CSS-only layout overrides in the file browser; no logic, API, or data-handling changes.
Overview
Visual alignment in the workspace Files panel: the
@pierre/treessearch field and tree no longer sit 4px inward relative to the header.TREE_UNSAFE_CSSnow sets--trees-padding-inline-override: 12pxso the tree matches the header’spx-3inset, and addspadding-block-start: 4pxon[data-file-tree-search-container]for the search row spacing. Search behavior is unchanged.Reviewed by Cursor Bugbot for commit 4b32601. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix alignment and spacing of file search in FileBrowserPanel
Adds 12px inline padding to the file tree via a CSS custom property and 4px top padding to the search container in FileBrowserPanel.tsx.
Macroscope summarized 4b32601.