mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-09 06:53:27 +08:00
chore: remove <hr/> at the end when copying (#73)
This commit is contained in:
@@ -137,7 +137,7 @@ function ConversationCard(props) {
|
||||
}<br>${t('And refresh this page or type you question again')}` +
|
||||
`<br><br>${t(
|
||||
'Consider creating an api key at https://platform.openai.com/account/api-keys',
|
||||
)}<hr>`,
|
||||
)}\n<hr/>`,
|
||||
false,
|
||||
'error',
|
||||
)
|
||||
@@ -151,7 +151,7 @@ function ConversationCard(props) {
|
||||
}<br>${t('And refresh this page or type you question again')}` +
|
||||
`<br><br>${t(
|
||||
'Consider creating an api key at https://platform.openai.com/account/api-keys',
|
||||
)}<hr>`,
|
||||
)}\n<hr/>`,
|
||||
false,
|
||||
'error',
|
||||
)
|
||||
|
||||
@@ -16,7 +16,7 @@ export function ConversationItem({ type, content, session, done, port, onRetry }
|
||||
<div className="gpt-header">
|
||||
<p>{t('You')}:</p>
|
||||
<div className="gpt-util-group">
|
||||
<CopyButton contentFn={() => content} size={14} />
|
||||
<CopyButton contentFn={() => content.replace(/\n<hr\/>$/, '')} size={14} />
|
||||
{!collapsed ? (
|
||||
<span
|
||||
title={t('Collapse')}
|
||||
@@ -63,7 +63,9 @@ export function ConversationItem({ type, content, session, done, port, onRetry }
|
||||
<SyncIcon size={14} />
|
||||
</span>
|
||||
)}
|
||||
{session && <CopyButton contentFn={() => content} size={14} />}
|
||||
{session && (
|
||||
<CopyButton contentFn={() => content.replace(/\n<hr\/>$/, '')} size={14} />
|
||||
)}
|
||||
{!collapsed ? (
|
||||
<span
|
||||
title={t('Collapse')}
|
||||
@@ -97,7 +99,7 @@ export function ConversationItem({ type, content, session, done, port, onRetry }
|
||||
<SyncIcon size={14} />
|
||||
</span>
|
||||
)}
|
||||
<CopyButton contentFn={() => content} size={14} />
|
||||
<CopyButton contentFn={() => content.replace(/\n<hr\/>$/, '')} size={14} />
|
||||
{!collapsed ? (
|
||||
<span
|
||||
title={t('Collapse')}
|
||||
|
||||
Reference in New Issue
Block a user