Skip to content

Commit

Permalink
Search: open in new window
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Sep 21, 2023
1 parent 5f4d322 commit 85ec62c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/web-console/src/scenes/Editor/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ const Menu = () => {
indexName="questdb"
placeholder="Search documentation"
translations={{ button: { buttonText: "Search documentation" } }}
hitComponent={({ hit, children }) => (
<a href={hit.url} target="_blank" rel="noreferrer">
{children}
</a>
)}
navigator={{
navigate({ itemUrl }) {
return window.open(itemUrl, "_blank")
},
}}
/>
<DropdownMenu.Root modal={false}>
<DropdownMenu.Trigger asChild>
Expand Down
1 change: 1 addition & 0 deletions packages/web-console/src/theme/global-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const DocSearchStyles = css`
.DocSearch-Hit-title {
font-size: 100%;
overflow: hidden;
}
.DocSearch-Logo .cls-1,
Expand Down

0 comments on commit 85ec62c

Please sign in to comment.