Changing dropdown to support not going off screen.

This commit is contained in:
sccalabr
2024-10-05 11:38:23 -07:00
parent 345ab8ea9e
commit fc24eb08cb
2 changed files with 42 additions and 66 deletions

View File

@@ -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"){