chore: regroup codeblock setting appearance

This commit is contained in:
Faisal Amir 2025-05-19 23:21:19 +07:00
parent b69a9ceb0f
commit 0cc50531f8

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.',