Skip to content

Commit

Permalink
fix: now StarSearch input is not covered by vertical suggestions on s…
Browse files Browse the repository at this point in the history
…mall screens (#3265)
  • Loading branch information
nickytonline committed Apr 26, 2024
1 parent ae0341b commit 1624ea8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/star-search/index.tsx
Expand Up @@ -18,6 +18,8 @@ import { useMediaQuery } from "lib/hooks/useMediaQuery";
import SEO from "layouts/SEO/SEO";

const HEIGHT_TO_TAKE_OFF_SCROLL_AREA = 340;
const HEIGHT_TO_TAKE_OFF_SUGGESTIONS = 600;

const SUGGESTIONS = [
{
title: "Get information on contributor activity",
Expand Down Expand Up @@ -173,7 +175,10 @@ export default function StarSearchPage({ userId, bearerToken, ogImageUrl }: Star
switch (starSearchState) {
case "initial":
return (
<div className="flex flex-col text-center items-center gap-4 lg:pt-12 z-10">
<div
className="flex flex-col text-center items-center gap-4 lg:pt-12 mb-16"
// style={{ maxHeight: `calc(100vh - ${HEIGHT_TO_TAKE_OFF_SUGGESTIONS}px)` }}
>
<Header />
<SuggestionBoxes addPromptInput={addPromptInput} suggestions={SUGGESTIONS} />
</div>
Expand Down

0 comments on commit 1624ea8

Please sign in to comment.