Fix flicker on AI page

pull/5329/head
Kamran Ahmed 9 months ago
parent da526fa684
commit c9703c8589
  1. 6
      src/components/GenerateRoadmap/RoadmapSearch.tsx

@ -130,7 +130,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
</div> </div>
</div> </div>
<div className="mt-12 flex flex-col items-center gap-4"> <div className="mt-12 flex flex-col items-center gap-4">
<p className="text-gray-500"> <p className="text-gray-500 text-center">
You have generated{' '} You have generated{' '}
<span <span
className={cn( className={cn(
@ -145,7 +145,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
</span>{' '} </span>{' '}
roadmaps. roadmaps.
</p> </p>
<p className="flex min-h-[26px] items-center text-sm"> <p className="flex min-h-[46px] sm:min-h-[26px] items-center text-sm">
{limit > 0 && !isLoggedIn() && ( {limit > 0 && !isLoggedIn() && (
<button <button
onClick={showLoginPopup} onClick={showLoginPopup}
@ -159,7 +159,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
</button> </button>
)} )}
</p> </p>
<p className="-mt-[45px] flex min-h-[26px] items-center text-sm"> <p className="-mt-[75px] sm:-mt-[45px] flex min-h-[46px] sm:min-h-[26px] items-center text-sm">
{limit > 0 && isLoggedIn() && !openAPIKey && ( {limit > 0 && isLoggedIn() && !openAPIKey && (
<button <button
onClick={() => setIsConfiguring(true)} onClick={() => setIsConfiguring(true)}

Loading…
Cancel
Save