mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
feat: Update layout management in TerminalGrid to use updateLayoutSizes for size changes
This commit is contained in:
@@ -80,13 +80,13 @@ function GridGroupRenderer({ group, minSize, onSizeChange }: GridGroupRendererPr
|
||||
export function TerminalGrid({ className }: { className?: string }) {
|
||||
const layout = useTerminalGridStore(selectTerminalGridLayout);
|
||||
const panes = useTerminalGridStore(selectTerminalGridPanes);
|
||||
const setLayout = useTerminalGridStore((s) => s.setLayout);
|
||||
const updateLayoutSizes = useTerminalGridStore((s) => s.updateLayoutSizes);
|
||||
|
||||
const handleSizeChange = useCallback(
|
||||
(sizes: number[]) => {
|
||||
setLayout({ ...layout, sizes });
|
||||
updateLayoutSizes(sizes);
|
||||
},
|
||||
[layout, setLayout]
|
||||
[updateLayoutSizes]
|
||||
);
|
||||
|
||||
const content = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user