Skip to content

Commit fc93ccc

Browse files
committed
adjust the order of header icons
1 parent 802d87e commit fc93ccc

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,21 @@ function ConversationCard(props) {
381381
<ArchiveIcon size={16} />
382382
</span>
383383
)}
384+
a{' '}
385+
{conversationItemData.length > 0 && (
386+
<span
387+
title={t('Jump to bottom')}
388+
className="gpt-util-icon"
389+
onClick={() => {
390+
bodyRef.current.scrollTo({
391+
top: bodyRef.current.scrollHeight,
392+
behavior: 'smooth',
393+
})
394+
}}
395+
>
396+
<MoveToBottomIcon size={16} />
397+
</span>
398+
)}
384399
<span
385400
title={t('Save Conversation')}
386401
className="gpt-util-icon"
@@ -397,22 +412,6 @@ function ConversationCard(props) {
397412
>
398413
<DesktopDownloadIcon size={16} />
399414
</span>
400-
<span>
401-
{conversationItemData.length > 0 && (
402-
<span
403-
title={t('Jump to bottom')}
404-
className="gpt-util-icon"
405-
onClick={() => {
406-
bodyRef.current.scrollTo({
407-
top: bodyRef.current.scrollHeight,
408-
behavior: 'smooth',
409-
})
410-
}}
411-
>
412-
<MoveToBottomIcon size={16} />
413-
</span>
414-
)}
415-
</span>
416415
</span>
417416
</div>
418417
<hr />

0 commit comments

Comments
 (0)