UPDATE: Enhance stream start time;

PATCH: Remove placeholder video;
FIX: Correct focused-input behaviour;
PATCH: Remove debounce function from searchbar;
This commit is contained in:
Chris-1010
2025-02-19 23:09:03 +00:00
parent 416bd4a381
commit fd5e45a8de
4 changed files with 21 additions and 24 deletions

View File

@@ -27,7 +27,7 @@ const Input: React.FC<InputProps> = ({
onChange={onChange}
onKeyDown={onKeyDown}
{...props}
className={`${extraClasses} relative p-2 rounded-[1rem] w-[20vw] focus:w-[21vw] bg-black/40 border border-gray-300 focus:border-purple-500 focus:outline-purple-500 text-center text-white text-xl transition-all`}
className={`${extraClasses} relative p-2 rounded-[1rem] w-[20vw] focus:w-[22vw] bg-black/40 border border-gray-300 focus:border-purple-500 focus:outline-purple-500 text-center text-white text-xl transition-all`}
/>
</div>

View File

@@ -8,18 +8,6 @@ const SearchBar: React.FC = () => {
//const [debouncedQuery, setDebouncedQuery] = useState(searchQuery);
const navigate = useNavigate();
// Debounce the search query
{
/*
useEffect(() => {
const timer = setTimeout(() => {
setDebouncedQuery(searchQuery);
}, 500); // Wait 500ms after user stops typing
return () => clearTimeout(timer);
}, [searchQuery]); */
}
const handleSearch = async () => {
if (!searchQuery.trim()) return;