Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
fix(open-knowledge): remove extra sidebar indentation added by the skills viewer (#2367)
Andrew Mikofalvy03eb5697d7fd
diff --git a/.changeset/sidebar-indentation.md b/.changeset/sidebar-indentation.mdnew file mode 100644index 000000000..d04c6d3e0--- /dev/null+++ b/.changeset/sidebar-indentation.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++Fixed extra left indentation under the project name and in the Skills section of the file sidebar, introduced when the Skills viewer was added — both sections now align with the file tree's rows.diff --git a/packages/app/src/components/FileSidebar.tsx b/packages/app/src/components/FileSidebar.tsxindex ee08acda2..87aa97f9b 100644--- a/packages/app/src/components/FileSidebar.tsx+++ b/packages/app/src/components/FileSidebar.tsx@@ -628,8 +628,13 @@ function FileSidebarInner({ onOpenSearch }: FileSidebarProps) {before the first measurement lands. */}<Collapsible defaultOpen className="group/files flex shrink-0 flex-col">{/* SidebarGroup wrapper matches the Skills section so the two- headers + their content share the same gutter alignment. */}- <SidebarGroup className="min-h-0">+ headers + their content share the same gutter alignment.+ `px-0` overrides the base `p-2`'s horizontal inset — the+ header's own `px-2` (below) and Pierre's+ `--trees-padding-inline-override` (file-tree-density.ts)+ already each land at 8px, so stacking the group's own 8px+ on top would double it to 16px. */}+ <SidebarGroup className="min-h-0 px-0"><SidebarGroupLabel asChild className="shrink-0"><CollapsibleTriggerdata-sidebar-root-contextdiff --git a/packages/app/src/components/SkillsSidebarSection.tsx b/packages/app/src/components/SkillsSidebarSection.tsxindex 157c53a5e..ce1838dbd 100644--- a/packages/app/src/components/SkillsSidebarSection.tsx+++ b/packages/app/src/components/SkillsSidebarSection.tsx@@ -75,7 +75,12 @@ export function SkillsSidebarSection() {return (<Collapsible className="group/skills shrink-0">- <SidebarGroup>+ {/* `px-0` overrides the base `p-2`'s horizontal inset so the "Skills"+ header lands at the same 8px baseline as the Files section's project+ header (both rely solely on their own SidebarGroupLabel `px-2`) —+ see the matching override on the Files SidebarGroup in+ FileSidebar.tsx. */}+ <SidebarGroup className="px-0"><SidebarGroupLabel asChild><CollapsibleTrigger className="flex w-full items-center gap-1.5"><Hexagon className="size-3.5 shrink-0" />