fix: theme change of api page

This commit is contained in:
JzoNg 2025-04-21 11:25:13 +08:00
parent e114334c18
commit c8f90b9976
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
</button> </button>
)} )}
</div> </div>
<article className={cn('prose-xl prose mx-1 rounded-t-xl bg-background-default px-4 pt-16 sm:mx-12', theme === Theme.dark && 'dark:prose-invert')}> <article className={cn('prose-xl prose mx-1 rounded-t-xl bg-background-default px-4 pt-16 sm:mx-12', theme === Theme.dark && 'prose-invert')}>
{Template} {Template}
</article> </article>
</div> </div>

View File

@ -121,7 +121,7 @@ const Doc = ({ appDetail }: IDocProps) => {
</button> </button>
)} )}
</div> </div>
<article className={cn('prose-xl prose', theme === Theme.dark && 'dark:prose-invert')} > <article className={cn('prose-xl prose', theme === Theme.dark && 'prose-invert')} >
{(appDetail?.mode === 'chat' || appDetail?.mode === 'agent-chat') && ( {(appDetail?.mode === 'chat' || appDetail?.mode === 'agent-chat') && (
(() => { (() => {
switch (locale) { switch (locale) {