Skip to content

Commit 975f12b

Browse files
style changes
1 parent c8a368f commit 975f12b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

static/app/views/dashboards/dashboardChatPanel.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {useTheme} from '@emotion/react';
33
import styled from '@emotion/styled';
44

55
import {Alert} from '@sentry/scraps/alert';
6+
import {FeatureBadge} from '@sentry/scraps/badge';
67
import {Button} from '@sentry/scraps/button';
78
import {InputGroup} from '@sentry/scraps/input';
89
import {Container, Flex, Stack} from '@sentry/scraps/layout';
@@ -111,19 +112,25 @@ export function DashboardChatPanel({
111112
margin="0 auto"
112113
style={{zIndex: theme.zIndex.dropdown, marginBottom: '24px'}}
113114
>
114-
{hasHistory && (
115+
<Flex justify="between">
115116
<ChatHistoryToggle
116117
onClick={() => setIsHistoryExpanded(prev => !prev)}
117118
aria-expanded={isHistoryExpanded}
118119
priority="transparent"
120+
disabled={!hasHistory}
119121
>
120122
<Flex align="center" gap="sm">
121123
<IconSeer size="sm" />
122124
{t('Conversation')} ({blocks.length})
123-
<IconChevron direction={isHistoryExpanded ? 'down' : 'up'} size="xs" />
125+
{hasHistory && (
126+
<IconChevron direction={isHistoryExpanded ? 'down' : 'up'} size="xs" />
127+
)}
124128
</Flex>
125129
</ChatHistoryToggle>
126-
)}
130+
<Container padding="md xl">
131+
<FeatureBadge type="beta" />
132+
</Container>
133+
</Flex>
127134
{hasHistory && isHistoryExpanded && (
128135
<ChatHistory
129136
ref={chatContainerRef}
@@ -177,7 +184,7 @@ const ChatHistory = memo(function ChatHistoryInner({
177184
maxHeight={`${MAX_CHAT_HISTORY_HEIGHT}px`}
178185
overflowY="auto"
179186
overflowX="hidden"
180-
border="primary"
187+
borderTop="primary"
181188
>
182189
<Stack>
183190
{blocks.map((block, index) => (

0 commit comments

Comments
 (0)