Skip to content

Commit

Permalink
Fix chat UI height (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertrand authored Feb 26, 2025
1 parent 0e23cfe commit 089f098
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions frontend-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const REQUEST_OPTS: AiChatProps["requestOpts"] = {
},
}

const StyledChat = styled(AiChat)({
const Container = styled.div({
height: "calc(80vh - 72px)",
marginTop: "16px",
})
Expand All @@ -61,12 +61,14 @@ const HomePage: React.FC = () => {
}

return (
<StyledChat
initialMessages={INITIAL_MESSAGES}
requestOpts={REQUEST_OPTS}
conversationStarters={STARTERS}
parseContent={parseContent}
/>
<Container>
<AiChat
initialMessages={INITIAL_MESSAGES}
requestOpts={REQUEST_OPTS}
conversationStarters={STARTERS}
parseContent={parseContent}
/>
</Container>
)
}

Expand Down

0 comments on commit 089f098

Please sign in to comment.