Skip to content

Commit 1dd1e11

Browse files
committed
Hide the split button when the panel has only one tab
1 parent 79ac8e3 commit 1dd1e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/twig/src/renderer/features/panels/components/TabbedPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export const TabbedPanel: React.FC<TabbedPanelProps> = ({
202202
background: "var(--color-background)",
203203
}}
204204
>
205-
{onSplitPanel && (
205+
{onSplitPanel && content.tabs.length > 1 && (
206206
<TabBarButton
207207
ariaLabel="Split panel"
208208
onClick={handleSplitClick}

0 commit comments

Comments
 (0)