diff --git a/models/server-core/src/index.ts b/models/server-core/src/index.ts index 1456bc411b..0a92306c04 100644 --- a/models/server-core/src/index.ts +++ b/models/server-core/src/index.ts @@ -63,7 +63,7 @@ export class TObjectDDParticipant extends TClass implements ObjectDDParticipant @Mixin(serverCore.mixin.SearchPresenter, core.class.Class) export class TSearchPresenter extends TClass implements SearchPresenter { searchConfig!: ClassSearchConfig - getSearchObjectId!: Resource + getSearchShortTitle!: Resource getSearchTitle!: Resource } diff --git a/packages/text-editor/src/components/MentionPopup.svelte b/packages/text-editor/src/components/MentionPopup.svelte index 1f7cf020eb..d285afc93f 100644 --- a/packages/text-editor/src/components/MentionPopup.svelte +++ b/packages/text-editor/src/components/MentionPopup.svelte @@ -164,39 +164,43 @@ $: updateItems(query) -
dispatch('changeSize')}> -
-
- {#if items.length === 0 && query !== ''} -
- {/if} - - - - {@const item = items[num]} - {#if item.num === 0} -
-
- {/if} -
- - {@const item = items[num]} - {@const doc = item.item} -
{ - dispatchItem(doc) - }} - > - -
-
-
+{#if (items.length === 0 && query !== '') || items.length > 0} + dispatch('changeSize')}> +
+
+ {#if items.length === 0 && query !== ''} +
+ {/if} + {#if items.length > 0} + + + + {@const item = items[num]} + {#if item.num === 0} +
+
+ {/if} +
+ + {@const item = items[num]} + {@const doc = item.item} +
{ + dispatchItem(doc) + }} + > + +
+
+
+ {/if} +
-
-
- +
+ +{/if}