Skip to content

Commit

Permalink
fix History button position (#113)
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <[email protected]>
(cherry picked from commit e28d020)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jan 29, 2024
1 parent 2d2bd8c commit 7b58641
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions public/tabs/chat_window_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@ export const ChatWindowHeader = React.memo((props: ChatWindowHeaderProps) => {
<EuiFlexItem grow={false}>
<ChatWindowHeaderTitle />
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
aria-label="history"
iconType="clock"
size="xs"
color="text"
onClick={() => {
chatContext.setFlyoutComponent(undefined);
// Back to chat tab if history page already visible
chatContext.setSelectedTabId(
chatContext.selectedTabId === TAB_ID.HISTORY ? TAB_ID.CHAT : TAB_ID.HISTORY
);
}}
display={chatContext.selectedTabId === TAB_ID.HISTORY ? 'fill' : undefined}
/>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
aria-label="history"
iconType="clock"
size="xs"
color="text"
onClick={() => {
chatContext.setFlyoutComponent(undefined);
// Back to chat tab if history page already visible
chatContext.setSelectedTabId(
chatContext.selectedTabId === TAB_ID.HISTORY ? TAB_ID.CHAT : TAB_ID.HISTORY
);
}}
display={chatContext.selectedTabId === TAB_ID.HISTORY ? 'fill' : undefined}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
aria-label="fullScreen"
Expand Down

0 comments on commit 7b58641

Please sign in to comment.