fix: add background color for chat bubble in light and dark themes (#22472)

This commit is contained in:
Wu Tianwei
2025-07-16 13:36:51 +08:00
committed by GitHub
parent ddfd8c8525
commit aef67ed7ec
4 changed files with 8 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ const Question: FC<QuestionProps> = ({
/>
)
}
{ !isEditing
{!isEditing
? <Markdown content={content} />
: <div className="
flex flex-col gap-2 rounded-xl
@@ -151,8 +151,8 @@ const Question: FC<QuestionProps> = ({
<Button variant='ghost' onClick={handleCancelEditing}>{t('common.operation.cancel')}</Button>
<Button variant='primary' onClick={handleResend}>{t('common.chat.resend')}</Button>
</div>
</div> }
{ !isEditing && <ContentSwitch
</div>}
{!isEditing && <ContentSwitch
count={item.siblingCount}
currentIndex={item.siblingIndex}
prevDisabled={!item.prevSibling}