From 190825902ba84ed1229a973b7a7f03e22122b742 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 23 Apr 2024 18:47:51 +0100 Subject: [PATCH] LinkPicker modal, removes `overlaySize` config --- .../src/packages/core/modal/token/link-picker-modal.token.ts | 2 -- .../components/input-markdown-editor/input-markdown.element.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/link-picker-modal.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/link-picker-modal.token.ts index ed51668daf..7bab99f381 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/link-picker-modal.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/link-picker-modal.token.ts @@ -1,5 +1,4 @@ import { UmbModalToken } from './modal-token.js'; -import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; export interface UmbLinkPickerModalData { config: UmbLinkPickerConfig; @@ -26,7 +25,6 @@ export type UmbLinkPickerLinkType = 'document' | 'external' | 'media'; export interface UmbLinkPickerConfig { hideAnchor?: boolean; ignoreUserStartNodes?: boolean; - overlaySize?: UUIModalSidebarSize; } export const UMB_LINK_PICKER_MODAL = new UmbModalToken( diff --git a/src/Umbraco.Web.UI.Client/src/packages/markdown-editor/components/input-markdown-editor/input-markdown.element.ts b/src/Umbraco.Web.UI.Client/src/packages/markdown-editor/components/input-markdown-editor/input-markdown.element.ts index e525c752b5..aa660696a2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/markdown-editor/components/input-markdown-editor/input-markdown.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/markdown-editor/components/input-markdown-editor/input-markdown.element.ts @@ -184,9 +184,10 @@ export class UmbInputMarkdownElement extends UUIFormControlMixin(UmbLitElement, this._focusEditor(); // Focus before opening modal const modalContext = this._modalContext.open(this, UMB_LINK_PICKER_MODAL, { + modal: { size: this.overlaySize }, data: { index: null, - config: { overlaySize: this.overlaySize }, + config: {}, }, value: { link: { name: selectedValue },