TagSpaces is an offline, open source, document manager with tagging support
chore: open ts links not in full screen
Ilian Sapundshievcfc8ceaa0700
diff --git a/app/components/SearchInline.tsx b/app/components/SearchInline.tsxindex d0791c854..157477765 100644--- a/app/components/SearchInline.tsx+++ b/app/components/SearchInline.tsx@@ -67,7 +67,7 @@ interface Props {searchQuery: TS.SearchQuery; // () => any;openCurrentDirectory: () => void;setSearchQuery: (searchQuery: TS.SearchQuery) => void;- openLink: (linkURL: string) => void;+ openLink: (url: string, options?: any) => void;currentDirectory: string;indexedEntriesCount: number;maxSearchResults: number;@@ -370,7 +370,7 @@ function SearchInline(props: Props) {query.startsWith('ts:?ts') ||query.startsWith(AppConfig.tsProtocol + '?ts')) {- props.openLink(query);+ props.openLink(query, { fullWidth: false });clearSearch();return;}diff --git a/app/components/dialogs/OpenLinkDialog.tsx b/app/components/dialogs/OpenLinkDialog.tsxindex 8660e0dba..e5c4258f9 100644--- a/app/components/dialogs/OpenLinkDialog.tsx+++ b/app/components/dialogs/OpenLinkDialog.tsx@@ -34,7 +34,7 @@ import InfoIcon from '-/components/InfoIcon';interface Props {open: boolean;onClose: () => void;- openLink: (linkURL: string) => void;+ openLink: (url: string, options?: any) => void;}function OpenLinkDialog(props: Props) {@@ -66,7 +66,7 @@ function OpenLinkDialog(props: Props) {function onConfirm() {if (!disableConfirmButton && linkURL) {- props.openLink(linkURL);+ props.openLink(linkURL, { fullWidth: false });resetState();props.onClose();}