|
|
@ -137,7 +137,7 @@ export default function Conversation() {
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
onWheel={handleUserInterruption}
|
|
|
|
onWheel={handleUserInterruption}
|
|
|
|
onTouchMove={handleUserInterruption}
|
|
|
|
onTouchMove={handleUserInterruption}
|
|
|
|
className="flex h-[80vh] md:h-[85vh] w-full justify-center overflow-y-auto p-4"
|
|
|
|
className="flex h-[90%] w-full justify-center overflow-y-auto p-4 md:h-[84vh]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{queries.length > 0 && !hasScrolledToLast && (
|
|
|
|
{queries.length > 0 && !hasScrolledToLast && (
|
|
|
|
<button
|
|
|
|
<button
|
|
|
@ -173,8 +173,8 @@ export default function Conversation() {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
{queries.length === 0 && <Hero handleQuestion={handleQuestion} />}
|
|
|
|
{queries.length === 0 && <Hero handleQuestion={handleQuestion} />}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="bottom-0 flex w-11/12 flex-col items-end self-center bg-white pt-1 dark:bg-raisin-black sm:w-6/12 md:fixed">
|
|
|
|
<div className="bottom-safe fixed flex w-11/12 flex-col items-end self-center rounded-2xl pb-1 sm:w-6/12 bg-opacity-0">
|
|
|
|
<div className="flex h-full w-full items-center rounded-full border border-silver">
|
|
|
|
<div className="flex h-full w-full items-center rounded-full border border-silver bg-white dark:bg-raisin-black">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
id="inputbox"
|
|
|
|
id="inputbox"
|
|
|
|
ref={inputRef}
|
|
|
|
ref={inputRef}
|
|
|
@ -196,7 +196,7 @@ export default function Conversation() {
|
|
|
|
{status === 'loading' ? (
|
|
|
|
{status === 'loading' ? (
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
src={isDarkTheme ? SpinnerDark : Spinner}
|
|
|
|
src={isDarkTheme ? SpinnerDark : Spinner}
|
|
|
|
className="relative right-[38px] bottom-[15px] -mr-[30px] animate-spin cursor-pointer self-end bg-transparent"
|
|
|
|
className="relative right-[38px] bottom-[24px] -mr-[30px] animate-spin cursor-pointer self-end bg-transparent"
|
|
|
|
></img>
|
|
|
|
></img>
|
|
|
|
) : (
|
|
|
|
) : (
|
|
|
|
<div className="mx-1 cursor-pointer rounded-full p-4 text-center hover:bg-gray-3000">
|
|
|
|
<div className="mx-1 cursor-pointer rounded-full p-4 text-center hover:bg-gray-3000">
|
|
|
|