Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed May 9, 2024
1 parent 4e7e3c3 commit a4f472b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/ConversationItem/index.jsx
Expand Up @@ -35,7 +35,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry }
switch (type) {
case 'question':
return (
<div className={type} dir="auto">
<div className={'chatgptbox-' + type} dir="auto">
<div className="gpt-header">
<p>{t('You')}:</p>
<div className="gpt-util-group">
Expand Down Expand Up @@ -65,7 +65,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry }
)
case 'answer':
return (
<div className={type} dir="auto">
<div className={'chatgptbox-' + type} dir="auto">
<div className="gpt-header">
<AnswerTitle descName={descName} modelName={modelName} />
<div className="gpt-util-group">
Expand Down Expand Up @@ -102,7 +102,7 @@ export function ConversationItem({ type, content, descName, modelName, onRetry }
)
case 'error':
return (
<div className={type} dir="auto">
<div className={'chatgptbox-' + type} dir="auto">
<div className="gpt-header">
<p>{t('Error')}:</p>
<div className="gpt-util-group">
Expand Down
6 changes: 3 additions & 3 deletions src/content-script/styles.scss
Expand Up @@ -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;
Expand Down Expand Up @@ -1332,7 +1332,7 @@
}
}

.error {
.chatgptbox-error {
p {
color: #ec4336;
}
Expand Down

0 comments on commit a4f472b

Please sign in to comment.