Skip to content

Commit

Permalink
fixed chat screen
Browse files Browse the repository at this point in the history
  • Loading branch information
connected-znaim committed Oct 25, 2024
1 parent d40330a commit e406b00
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styled from 'styled-components'
import { useAtom } from 'jotai'

import {
COLORS,
DIRECTION_COLUMN,
Flex,
OVERFLOW_AUTO,
Expand Down Expand Up @@ -32,14 +31,11 @@ export function MainContentContainer(): JSX.Element {

return (
<Flex
marginTop="2.5rem"
marginLeft="24.375rem"
padding={`${SPACING.spacing40} ${SPACING.spacing40} ${SPACING.spacing24}`}
backgroundColor={COLORS.grey10}
width="auto"
flexDirection={DIRECTION_COLUMN}
gridGap={SPACING.spacing40}
height="100vh"
height="80vh"
width="100%"
>
<Flex
width="100%"
Expand Down
1 change: 1 addition & 0 deletions opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export function UpdateProtocol(): JSX.Element {
/>
)}
</Flex>
<Flex height={'16px'}></Flex>
<Flex flexDirection={DIRECTION_COLUMN} width="100%">
<DropdownMenu
title={t('type_of_update')}
Expand Down
20 changes: 14 additions & 6 deletions opentrons-ai-client/src/pages/Chat/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { useForm, FormProvider } from 'react-hook-form'
import { COLORS, Flex, POSITION_RELATIVE } from '@opentrons/components'
import {
DIRECTION_COLUMN,
DIRECTION_ROW,
Flex,
JUSTIFY_CENTER,
POSITION_RELATIVE,
} from '@opentrons/components'

import { SidePanel } from '../../molecules/SidePanel'
import { MainContentContainer } from '../../organisms/MainContentContainer'

export interface InputType {
Expand All @@ -18,12 +23,15 @@ export function Chat(): JSX.Element | null {
return (
<Flex
position={POSITION_RELATIVE}
minHeight="100vh"
backgroundColor={COLORS.grey10}
flexDirection={DIRECTION_COLUMN}
justifyContent={JUSTIFY_CENTER}
width="100%"
>
<FormProvider {...methods}>
{/* <SidePanel /> */}
<MainContentContainer />
<Flex flexDirection={DIRECTION_ROW}>
{/* <SidePanel /> */}
<MainContentContainer />
</Flex>
</FormProvider>
</Flex>
)
Expand Down

0 comments on commit e406b00

Please sign in to comment.