mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
Changing dropdown to support not going off screen.
This commit is contained in:
@@ -369,9 +369,10 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
|
||||
></img>
|
||||
<Dropdown
|
||||
placeholder={"Help"}
|
||||
selectedValue={null}
|
||||
contentSize='50'
|
||||
options={[ { label: "Docs", value: "documentation" }, { label: "Email Us", value: "email" }, ]}
|
||||
onSelect={(selectedOption) => {
|
||||
onSelect={(selectedOption: { label: string; value: string }) => {
|
||||
if (selectedOption.value === "documentation") {
|
||||
window.open(" https://docs.docsgpt.cloud/", "_blank");
|
||||
} else if (selectedOption.value === "email"){
|
||||
|
||||
Reference in New Issue
Block a user