An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Fix nested button error in SearchSection
Yoshiki Miura53e4bb7e2b9f
diff --git a/components/search-section.tsx b/components/search-section.tsxindex 2898b7a1..372d4ae5 100644--- a/components/search-section.tsx+++ b/components/search-section.tsx@@ -44,13 +44,16 @@ export function SearchSection({tool="search"number={searchResults?.results?.length}>{`${query}${includeDomainsString}`}</ToolArgsSection>- <button+ <spanonClick={() => open(tool)}- className="ml-2 rounded-md p-1 hover:bg-accent"+ className="ml-2 rounded-md p-1 hover:bg-accent cursor-pointer"title="Open details"+ role="button"+ tabIndex={0}+ onKeyDown={e => e.key === 'Enter' && open(tool)}><Maximize2 size={14} />- </button>+ </span></div>)