Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions components/editor/shared/EntityTreeToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,21 @@ export function EntityTreeToolbar({
{showCollapseGroup && (
<div className="flex rounded-md border border-slate-200 dark:border-slate-600">
<button
onClick={onCollapseAll}
onClick={onCollapseOneLevel}
disabled={collapseDisabled}
className={cn(btnBase, "rounded-l-md border-r border-slate-200 dark:border-slate-600", collapseDisabled ? btnDisabled : btnEnabled)}
aria-label="Collapse all"
aria-label="Collapse one level"
>
<ChevronsRight className="h-3.5 w-3.5" />
<ChevronRight className="h-3.5 w-3.5" />
<span className="hidden sm:inline">Collapse</span>
</button>
<button
onClick={onCollapseOneLevel}
onClick={onCollapseAll}
disabled={collapseDisabled}
className={cn(btnBase, "rounded-r-md px-1", collapseDisabled ? btnDisabled : btnEnabled)}
aria-label="Collapse one level"
aria-label="Collapse all"
>
<ChevronRight className="h-3.5 w-3.5" />
<ChevronsRight className="h-3.5 w-3.5" />
</button>
</div>
)}
Expand Down
Loading