fix(Folder): align file list entries and unify spacing in file explorer #1224
+168
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Summary
Fixes file explorer alignment and spacing so folder/file entries line up and spacing is consistent (resolves #1217).
Changes
Layout
gap-2on each row and removedmr-2from icons so spacing between chevron/spacer, icon, and label is uniform (8px).aria-hiddenso it’s ignored by assistive tech.Code
src/components/Folder/index.tsxw-4→flex h-4 w-4 flex-shrink-0 items-center justify-center+aria-hidden.flex-shrink-0for consistent first-column width.gap-2, removedmr-2from FolderIcon, file icon, and FileText.FileTreefor unit tests.Tests
test/unit/components/Folder/FileTree.test.tsx(new)h-4/w-4for alignment.gap-2for spacing.aria-hidden.onToggleFolder/onSelectFileon click.nullwhen node has no children.Testing
npm run lint— passnpm run test -- --run test/unit/components/Folder/FileTree.test.tsx— 7 tests pass##Resolves