From a4f472b2c1f6111a510b7567ed46e70e9982b981 Mon Sep 17 00:00:00 2001 From: josc146 Date: Thu, 9 May 2024 12:42:13 +0800 Subject: [PATCH] fix https://github.com/josStorer/chatGPTBox/issues/661#issuecomment-2016704211 --- src/components/ConversationItem/index.jsx | 6 +++--- src/content-script/styles.scss | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ConversationItem/index.jsx b/src/components/ConversationItem/index.jsx index 9ef77344..44a5ec27 100644 --- a/src/components/ConversationItem/index.jsx +++ b/src/components/ConversationItem/index.jsx @@ -35,7 +35,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry } switch (type) { case 'question': return ( -
+

{t('You')}:

@@ -65,7 +65,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry } ) case 'answer': return ( -
+
@@ -102,7 +102,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry } ) case 'error': return ( -
+

{t('Error')}:

diff --git a/src/content-script/styles.scss b/src/content-script/styles.scss index 61ad5082..c99ff6a6 100644 --- a/src/content-script/styles.scss +++ b/src/content-script/styles.scss @@ -1264,11 +1264,11 @@ white-space: nowrap; } - .question { + .chatgptbox-question { background: var(--question-bg-color); } - :is(.answer, .question, .error) { + :is(.chatgptbox-answer, .chatgptbox-question, .chatgptbox-error) { font-size: 15px; line-height: 1.6; padding: 4px 15px; @@ -1332,7 +1332,7 @@ } } - .error { + .chatgptbox-error { p { color: #ec4336; }