mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): mark reasoning summary as markdown callout (#12176)
Close [AI-75](https://linear.app/affine-design/issue/AI-75)  <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved formatting for AI-generated reasoning and web search results, displaying them as callout blocks for enhanced readability. - Expanded support for rendering callout blocks in the text renderer. - **Style** - Adjusted layout to ensure callout blocks retain appropriate spacing and appearance. - **Refactor** - Simplified and unified the integration of web search tools for AI providers. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -124,8 +124,8 @@ export class TextRenderer extends WithDisposable(ShadowlessElement) {
|
||||
.ai-answer-text-editor {
|
||||
.affine-note-block-container {
|
||||
> .affine-block-children-container {
|
||||
> :first-child,
|
||||
> :first-child * {
|
||||
> :first-child:not(affine-callout),
|
||||
> :first-child:not(affine-callout) * {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
> :last-child,
|
||||
@@ -225,6 +225,7 @@ export class TextRenderer extends WithDisposable(ShadowlessElement) {
|
||||
'affine:table',
|
||||
'affine:surface',
|
||||
'affine:paragraph',
|
||||
'affine:callout',
|
||||
'affine:code',
|
||||
'affine:list',
|
||||
'affine:divider',
|
||||
|
||||
Reference in New Issue
Block a user