Update autofouc on roadmap generator

pull/5329/head
Kamran Ahmed 9 months ago
parent c9703c8589
commit 18db62748c
  1. 1
      src/components/GenerateRoadmap/GenerateRoadmap.tsx
  2. 4
      src/components/GenerateRoadmap/RoadmapSearch.tsx

@ -484,7 +484,6 @@ export function GenerateRoadmap() {
> >
<input <input
type="text" type="text"
autoFocus
placeholder="e.g. Try searching for Ansible or DevOps" placeholder="e.g. Try searching for Ansible or DevOps"
className="flex-grow rounded-md border border-gray-400 px-3 py-2 transition-colors focus:border-black focus:outline-none" className="flex-grow rounded-md border border-gray-400 px-3 py-2 transition-colors focus:border-black focus:outline-none"
value={roadmapTerm} value={roadmapTerm}

@ -41,7 +41,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
const randomTerms = ['OAuth', 'APIs', 'UX Design', 'gRPC']; const randomTerms = ['OAuth', 'APIs', 'UX Design', 'gRPC'];
return ( return (
<div className="flex flex-grow flex-col items-center justify-center px-4 py-6 sm:px-6"> <div className="flex flex-grow flex-col items-center sm:justify-center px-4 py-6 sm:px-6">
{isConfiguring && ( {isConfiguring && (
<OpenAISettings <OpenAISettings
onClose={() => { onClose={() => {
@ -159,7 +159,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
</button> </button>
)} )}
</p> </p>
<p className="-mt-[75px] sm:-mt-[45px] flex min-h-[46px] sm:min-h-[26px] items-center text-sm"> <p className="-mt-[75px] sm:-mt-[46px] flex min-h-[46px] sm:min-h-[26px] items-center text-sm">
{limit > 0 && isLoggedIn() && !openAPIKey && ( {limit > 0 && isLoggedIn() && !openAPIKey && (
<button <button
onClick={() => setIsConfiguring(true)} onClick={() => setIsConfiguring(true)}

Loading…
Cancel
Save