Skip to content

Commit

Permalink
Added new styles to style sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisHilbert committed Aug 9, 2024
1 parent e6680ce commit ab793c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 16 additions & 0 deletions frontend/src/pages/chat/Chat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
gap: 5px;
}

.chatHorizontalStyle {
width: 100%;
height: 100%;
}

.chatVerticalFill {
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 10;
width: 100%;
}

.chatContainer {
flex: 1;
display: flex;
Expand Down
11 changes: 2 additions & 9 deletions frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,8 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
</h2>
</Stack>
) : (
<Stack horizontal role="Stack Horizontal" style={{width: '100%', height: '100%'}}>
<Stack verticalFill role="Stack verticalFill" style={{display: 'flex',
flexGrow: 1,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
flexWrap: 'wrap',
padding: '10px',
width: '100%'}} >
<Stack horizontal role="Stack Horizontal" className={styles.chatHorizontalStyle}>
<Stack verticalFill role="Stack verticalFill" className={styles.chatVerticalFill}>
<div className={styles.chatMessageStream} style={{ marginBottom: isLoading ? '40px' : '0px' }} role="log">
{messages.map((answer, index) => (
<>
Expand Down

0 comments on commit ab793c4

Please sign in to comment.