@@ -53,101 +53,104 @@ export default function Search(props) {
56− <div className="fixed w-screen h-screen bg-black bg-opacity-30 z-50 flex flex-col">
57+ <div className="fixed w-screen h-screen bg-black bg-opacity-30 z-50 flex flex-col">
57− <div className="p-12 w-100 flex flex-col min-h-0">
58+ <div className="p-12 w-100 flex flex-col min-h-0">
58− <div className="relative flex flex-col" ref={searchRef}>
59+ <div className="relative flex flex-col" ref={searchRef}>
60− className="bg-white type-ui text-green rounded-xl border-transparent p-2 outline-none relative"
61+ className="bg-white type-ui text-green rounded-xl border-transparent p-2 outline-none relative"
61− onChange={onChange}
62+ onChange={onChange}
62− onFocus={onFocus}
63+ onFocus={onFocus}
63− placeholder="Search..."
64+ placeholder="Search..."
64− type="text"
65+ type="text"
65− value={query}
66+ value={query}
66− autoFocus={true}
67+ autoFocus={true}
68− {query.length > 0 && (
69+ {query.length > 0 && (
70− onClick={clear}
71+ onClick={clear}
71− className="absolute right-3"
72+ className="absolute right-3"
72− style={{ top: 13 }}
73+ style={{ top: 13 }}
79− xmlns="http://www.w3.org/2000/svg"
80+ xmlns="http://www.w3.org/2000/svg"
82− fill-rule="evenodd"
83+ fill-rule="evenodd"
83− clip-rule="evenodd"
84+ clip-rule="evenodd"
84− d="M0.39382 13.7045C-0.131273 14.2296 -0.131274 15.081 0.39382 15.6061C0.918913 16.1312 1.77026 16.1312 2.29535 15.6061L7.99999 9.90142L13.7047 15.6061C14.2297 16.1312 15.0811 16.1312 15.6062 15.6061C16.1313 15.081 16.1313 14.2296 15.6062 13.7046L9.90152 7.99989L15.6061 2.29535C16.1311 1.77026 16.1312 0.918913 15.6061 0.39382C15.081 -0.131273 14.2296 -0.131273 13.7045 0.39382L7.99999 6.09836L2.29548 0.393844C1.77038 -0.131249 0.919038 -0.131249 0.393945 0.393844C-0.131148 0.918937 -0.131148 1.77028 0.393945 2.29537L6.09846 7.99989L0.39382 13.7045Z"
85+ d="M0.39382 13.7045C-0.131273 14.2296 -0.131274 15.081 0.39382 15.6061C0.918913 16.1312 1.77026 16.1312 2.29535 15.6061L7.99999 9.90142L13.7047 15.6061C14.2297 16.1312 15.0811 16.1312 15.6062 15.6061C16.1313 15.081 16.1313 14.2296 15.6062 13.7046L9.90152 7.99989L15.6061 2.29535C16.1311 1.77026 16.1312 0.918913 15.6061 0.39382C15.081 -0.131273 14.2296 -0.131273 13.7045 0.39382L7.99999 6.09836L2.29548 0.393844C1.77038 -0.131249 0.919038 -0.131249 0.393945 0.393844C-0.131148 0.918937 -0.131148 1.77028 0.393945 2.29537L6.09846 7.99989L0.39382 13.7045Z"
85− fill="black"
86+ fill="black"
86− fill-opacity="0.6"
87+ fill-opacity="0.6"
93− className={
94+ className={
94− "bg-white overflow-scroll min-h-0 rounded-xl border-transparent mt-2 " +
95+ "bg-white overflow-scroll min-h-0 rounded-xl border-transparent mt-2 " +
95− (query.length > 0 ? "" : "hidden")
96+ (query.length > 0 ? "" : "hidden")
98− {active && glossaryResults.length > 0 && (
99+ {active && glossaryResults.length > 0 && (
100− {glossaryResults.map(({ name, link, desc, symbol }) => {
101+ {glossaryResults.map(({ name, link, desc, symbol }) => {
102− <div className="border-b border-gray">
103− <p className="font-semibold text-sm pb-4 text-gray pl-3 pt-2">
106− <li key={link} className="cursor-pointer hover:bg-wall">
107− <Link href={link} as={link}>
108− <div className="font-semibold px-3">
109− {symbol.length > 0 && (
110− <code className="mr-1">{symbol}</code>
113− <p className="font-normal text-base pt-1 pb-4">
124− {active && results.length > 0 && (
125− <ul className="p-2">
127− <p className="font-semibold text-sm pb-4 text-gray">
128− {results.length} results for "{query}"
132− .filter((e) => e.parent !== "Glossary")
133− .map(({ title, slug, content, parent }) => {
103+ <div className="border-b border-gray">
104+ <p className="font-semibold text-sm pb-4 text-gray pl-3 pt-2">
135− <li key={slug} className="cursor-pointer hover:bg-wall">
107+ <li key={link} className="cursor-pointer hover:bg-wall">
136− <Link href={slug} as={slug}>
108+ <Link href={link} as={link}>
138− <p className="font-medium text-base">
109+ <div className="font-semibold px-3">
139− {parent} / {title}
110+ {symbol.length > 0 && (
140− </p>
111+ <code className="mr-1">{symbol}</code>
141− <p className="text-base font-regular">{content}</p>
114+ <p className="font-normal text-base pt-1 pb-4">
125+ {active && results.length > 0 && (
126+ <ul className="p-2">
128+ <p className="font-semibold text-sm pb-4 text-gray">
129+ {results.length} results for "{query}"
133+ .filter((e) => e.parent !== "Glossary")
134+ .map(({ title, slug, content, parent }) => {
136+ <li key={slug} className="cursor-pointer hover:bg-wall">
137+ <Link href={slug} as={slug}>
139+ <p className="font-medium text-base">
142+ <p className="text-base font-regular">{content}</p>
151− </div>
153+ {props.children}