fix(core): improve doc title and icon display (#9755)

Closes: [AF-2132](https://linear.app/affine-design/issue/AF-2132/优化-emoji-title-和-icon-显示)
This commit is contained in:
fundon authored and Fangdun Tsai committed 2025-01-18 17:29:15 +08:00
1 parent d048ac6c91
commit 7436c139ab
13 files changed
+159 -74

No files matched your search

@@ -145,10 +145,9 @@ export class AffineReference extends WithDisposable(ShadowlessElement) {
get _title() {
const { pageId, params, title } = this.referenceInfo;
return (
title ||
this.block?.std
?.get(DocDisplayMetaProvider)
.title(pageId, { params, title, referenced: true }).value
.title(pageId, { params, title, referenced: true }).value || title
);
}