The open source coding agent.
TypeScript
fix(app): tighten filetree row spacing
David Hillf4392e023aea
diff --git a/packages/app/src/components/file-tree.tsx b/packages/app/src/components/file-tree.tsxindex 283bceac720..07dad46d83f 100644--- a/packages/app/src/components/file-tree.tsx+++ b/packages/app/src/components/file-tree.tsx@@ -96,7 +96,7 @@ export default function FileTree(props: {<Dynamiccomponent={local.as ?? "div"}classList={{- "w-full min-w-0 flex items-center justify-start gap-x-2 rounded-md px-2 py-1 text-left hover:bg-surface-raised-base-hover active:bg-surface-base-active transition-colors cursor-pointer": true,+ "w-full min-w-0 h-6 flex items-center justify-start gap-x-2 rounded-md px-2 py-0 text-left hover:bg-surface-raised-base-hover active:bg-surface-base-active transition-colors cursor-pointer": true,...(local.classList ?? {}),[local.class ?? ""]: !!local.class,[props.nodeClass ?? ""]: !!props.nodeClass,@@ -147,7 +147,7 @@ export default function FileTree(props: {}return (- <div class={`flex flex-col ${props.class ?? ""}`}>+ <div class={`flex flex-col gap-0.5 ${props.class ?? ""}`}><For each={nodes()}>{(node) => {const expanded = () => file.tree.state(node.path)?.expanded ?? false@@ -166,6 +166,7 @@ export default function FileTree(props: {<Collapsiblevariant="ghost"class="w-full"+ data-scope="filetree"forceMount={false}open={expanded()}onOpenChange={(open) => (open ? file.tree.expand(node.path) : file.tree.collapse(node.path))}@@ -178,7 +179,7 @@ export default function FileTree(props: {</Node></Wrapper></Collapsible.Trigger>- <Collapsible.Content>+ <Collapsible.Content class="mt-0.5"><FileTreepath={node.path}level={level + 1}diff --git a/packages/ui/src/components/collapsible.css b/packages/ui/src/components/collapsible.cssindex c2b09f76182..1f20cf85d9a 100644--- a/packages/ui/src/components/collapsible.css+++ b/packages/ui/src/components/collapsible.css@@ -76,6 +76,12 @@}}}++ &[data-variant="ghost"][data-scope="filetree"] {+ > [data-slot="collapsible-trigger"] {+ height: 24px;+ }+ }}@keyframes slideDown {