Spaces:
Running
Running
Commit
·
5cb8032
1
Parent(s):
f78ec48
up
Browse files
src/app/interface/search-input/index.tsx
CHANGED
@@ -76,9 +76,6 @@ export function SearchInput() {
|
|
76 |
onFocus={() => {
|
77 |
handleSearch()
|
78 |
}}
|
79 |
-
onBlur={() => {
|
80 |
-
setShowAutocompleteBox(false)
|
81 |
-
}}
|
82 |
onChange={(e) => {
|
83 |
setSearchDraft(e.target.value)
|
84 |
setShowAutocompleteBox(true)
|
@@ -129,7 +126,7 @@ export function SearchInput() {
|
|
129 |
>
|
130 |
{searchAutocompleteResults.length === 0 ? <div>Nothing to show, type something and press enter</div> : null}
|
131 |
{searchAutocompleteResults.map(media => (
|
132 |
-
<
|
133 |
<div
|
134 |
className={cn(
|
135 |
`dark:hover:bg-neutral-800 hover:bg-neutral-800`,
|
@@ -139,10 +136,9 @@ export function SearchInput() {
|
|
139 |
)}
|
140 |
|
141 |
>
|
142 |
-
|
143 |
{media.label}
|
144 |
-
|
145 |
-
</
|
146 |
))}
|
147 |
</div>
|
148 |
</div>
|
|
|
76 |
onFocus={() => {
|
77 |
handleSearch()
|
78 |
}}
|
|
|
|
|
|
|
79 |
onChange={(e) => {
|
80 |
setSearchDraft(e.target.value)
|
81 |
setShowAutocompleteBox(true)
|
|
|
126 |
>
|
127 |
{searchAutocompleteResults.length === 0 ? <div>Nothing to show, type something and press enter</div> : null}
|
128 |
{searchAutocompleteResults.map(media => (
|
129 |
+
<a key={media.id} href={`https://aitube.at/watch?v=${media.id}`}>
|
130 |
<div
|
131 |
className={cn(
|
132 |
`dark:hover:bg-neutral-800 hover:bg-neutral-800`,
|
|
|
136 |
)}
|
137 |
|
138 |
>
|
|
|
139 |
{media.label}
|
140 |
+
</div>
|
141 |
+
</a>
|
142 |
))}
|
143 |
</div>
|
144 |
</div>
|
src/app/interface/video-card/index.tsx
CHANGED
@@ -75,7 +75,7 @@ export function VideoCard({
|
|
75 |
}, [index])
|
76 |
|
77 |
return (
|
78 |
-
<Link href={
|
79 |
<div
|
80 |
className={cn(
|
81 |
`w-full flex`,
|
|
|
75 |
}, [index])
|
76 |
|
77 |
return (
|
78 |
+
<Link href={`https://aitube.at/watch?v=${media.id}`}>
|
79 |
<div
|
80 |
className={cn(
|
81 |
`w-full flex`,
|