adjust the order of header icons

This commit is contained in:
josc146
2023-06-13 00:02:48 +08:00
parent 802d87ef93
commit fc93ccc51c
+15 -16
View File
@@ -381,6 +381,21 @@ function ConversationCard(props) {
<ArchiveIcon size={16} />
</span>
)}
a{' '}
{conversationItemData.length > 0 && (
<span
title={t('Jump to bottom')}
className="gpt-util-icon"
onClick={() => {
bodyRef.current.scrollTo({
top: bodyRef.current.scrollHeight,
behavior: 'smooth',
})
}}
>
<MoveToBottomIcon size={16} />
</span>
)}
<span
title={t('Save Conversation')}
className="gpt-util-icon"
@@ -397,22 +412,6 @@ function ConversationCard(props) {
>
<DesktopDownloadIcon size={16} />
</span>
<span>
{conversationItemData.length > 0 && (
<span
title={t('Jump to bottom')}
className="gpt-util-icon"
onClick={() => {
bodyRef.current.scrollTo({
top: bodyRef.current.scrollHeight,
behavior: 'smooth',
})
}}
>
<MoveToBottomIcon size={16} />
</span>
)}
</span>
</span>
</div>
<hr />