Skip to content

Commit b573f73

Browse files
authored
Merge pull request ag-ui-protocol#304 from ag-ui-protocol/chore/fix-demos-scroll
chore: fix scroll on shared state demo
2 parents 2e3b0ae + b4ff602 commit b573f73

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ export default function FeatureLayout({ children, params }: Props) {
5555
}
5656
}, [children, codeFiles, readme, view])
5757

58-
return <div className="bg-white rounded-lg overflow-hidden w-full h-full">{content}</div>;
58+
return <div className="bg-white rounded-lg w-full h-full">{content}</div>;
5959
}

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/shared_state/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const INITIAL_STATE: RecipeAgentState = {
213213
};
214214

215215
function Recipe() {
216+
const { isMobile } = useMobileView();
216217
const { state: agentState, setState: setAgentState } = useCoAgent<RecipeAgentState>({
217218
name: "shared_state",
218219
initialState: INITIAL_STATE,
@@ -368,6 +369,7 @@ function Recipe() {
368369
return (
369370
<form
370371
data-testid="recipe-card"
372+
style={isMobile ? { marginBottom: "100px" } : {}}
371373
className="recipe-card">
372374
{/* Recipe Title */}
373375
<div className="recipe-header">

0 commit comments

Comments
 (0)