feat(workbench): integrate runtime data and map tooling
This commit is contained in:
@@ -42,9 +42,6 @@ export function useWorkbenchResponsiveLayout({
|
||||
const handleViewportChange = () => {
|
||||
setIsLargeScreen(mediaQuery.matches);
|
||||
setViewportWidth(window.innerWidth);
|
||||
if (mediaQuery.matches) {
|
||||
setMobileSheet(null);
|
||||
}
|
||||
};
|
||||
|
||||
handleViewportChange();
|
||||
@@ -58,6 +55,17 @@ export function useWorkbenchResponsiveLayout({
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isLargeScreen || mobileSheet === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mobileSheet === "agent") {
|
||||
expandAgentPanel();
|
||||
}
|
||||
setMobileSheet(null);
|
||||
}, [expandAgentPanel, isLargeScreen, mobileSheet]);
|
||||
|
||||
const shouldShowConditionFeed = conditionFeedVisible && !activeToolOpen;
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user