Skip to content

Commit

Permalink
fix: chat window header break in small screens (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam authored and ruanyl committed Nov 20, 2023
1 parent 9637ba9 commit 537ddf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/chat_flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const ChatFlyout: React.FC<ChatFlyoutProps> = (props) => {
</EuiFlyoutHeader>

{props.overrideComponent}
<EuiFlexGroup gutterSize="none" style={{ overflow: 'hidden' }}>
<EuiFlexGroup gutterSize="none" style={{ overflow: 'hidden' }} responsive={false}>
<EuiFlexItem className={cs({ 'llm-chat-hidden': !chatPageVisible })}>
<ChatPage />
</EuiFlexItem>
Expand Down
9 changes: 7 additions & 2 deletions public/tabs/chat_window_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,14 @@ export const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = React.memo((pro

return (
<>
<EuiFlexGroup gutterSize="s" justifyContent="spaceAround" alignItems="center">
<EuiFlexGroup
gutterSize="s"
justifyContent="spaceAround"
alignItems="center"
responsive={false}
>
<EuiFlexItem>
<EuiFlexGroup gutterSize="none" alignItems="center">
<EuiFlexGroup gutterSize="none" alignItems="center" responsive={false}>
<EuiFlexItem grow={false} style={{ marginLeft: '8px' }}>
<EuiIcon type={chatIcon} size="m" />
</EuiFlexItem>
Expand Down

0 comments on commit 537ddf9

Please sign in to comment.