mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(editor): comment style and creation issues (#13006)
#### PR Dependency Tree * **PR #13006** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated embedded note content to remove background color and underline from inline comments for a cleaner appearance. * **Bug Fixes** * Improved comment functionality by ensuring comments are only added to blocks without text content. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -70,7 +70,7 @@ export class BlockCommentManager extends LifeCycleWatcher {
|
||||
}
|
||||
);
|
||||
if (!selectedBlocks) return [];
|
||||
return selectedBlocks.map(b => b.model);
|
||||
return selectedBlocks.map(b => b.model).filter(m => !m.text);
|
||||
});
|
||||
|
||||
const needCommentBlocks = [
|
||||
|
||||
Reference in New Issue
Block a user