Merge pull request #5022 from menloresearch/chore/appearance-group

chore: regroup codeblock setting appearance
This commit is contained in:
Faisal Amir 2025-05-20 09:33:04 +07:00 committed by GitHub
commit 7d25bcb168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,7 @@ function Appareances() {
description="Adjust the size of text across the app" description="Adjust the size of text across the app"
actions={<FontSizeSwitcher />} actions={<FontSizeSwitcher />}
/> />
<CardItem <CardItem
title="Window Background" title="Window Background"
description="Choose the App window color" description="Choose the App window color"
@ -97,10 +98,10 @@ function Appareances() {
/> />
</Card> </Card>
{/* Message */} {/* Codeblock */}
<Card title="Chat Message"> <Card>
<CardItem <CardItem
title="Code Block Style" title="Code Block"
description="Choose the style for code block syntax highlighting" description="Choose the style for code block syntax highlighting"
actions={<CodeBlockStyleSwitcher />} actions={<CodeBlockStyleSwitcher />}
/> />
@ -119,7 +120,7 @@ function Appareances() {
size="sm" size="sm"
onClick={() => { onClick={() => {
resetCodeBlockStyle() resetCodeBlockStyle()
toast.success('Code Block Style Reset', { toast.success('Code Block Reset', {
id: 'code-block-style', id: 'code-block-style',
description: description:
'Your Code Block style settings have been restored to default.', 'Your Code Block style settings have been restored to default.',