Skip to content

Commit

Permalink
Update Docsearch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Sep 22, 2023
1 parent fc90bc1 commit 407433f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/web-console/src/scenes/Editor/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ const Menu = () => {
appId="QL9L2YL7AQ"
apiKey="2f67aeacbe73ad08a49efb9214ea27f3"
indexName="questdb"
placeholder="Search documentation"
translations={{ button: { buttonText: "Search documentation" } }}
placeholder="Search docs"
translations={{ button: { buttonText: "Search docs" } }}
hitComponent={({ hit, children }) => (
<a href={hit.url} target="_blank" rel="noreferrer">
{children}
Expand Down
9 changes: 4 additions & 5 deletions packages/web-console/src/theme/global-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,24 @@ const DocSearchStyles = css`
height: 3rem;
border-radius: 0.4rem;
background: ${({ theme }) => theme.color.selection};
color: ${({ theme }) => theme.color.gray2};
color: ${({ theme }) => theme.color.foreground};
border: none;
}
.DocSearch-Button:hover {
border: none;
background: ${({ theme }) => theme.color.comment};
box-shadow: none;
color: ${({ theme }) => theme.color.foreground};
}
.DocSearch-Button-Placeholder {
font-size: 100%;
}
.DocSearch-Button .DocSearch-Search-Icon {
color: ${({ theme }) => theme.color.gray2};
width: 1.8rem;
height: 1.8rem;
color: ${({ theme }) => theme.color.foreground};
width: 1.4rem;
height: 1.4rem;
}
.DocSearch-Button:hover .DocSearch-Search-Icon {
Expand Down

0 comments on commit 407433f

Please sign in to comment.