fix: adjust suggestion positioning and height for improved UI layout
This commit is contained in:
parent
e2ef961692
commit
3fb3f782da
|
|
@ -8,7 +8,7 @@ import type { LucideIcon } from "lucide-react";
|
|||
import { Children, type ComponentProps } from "react";
|
||||
|
||||
const STAGGER_DELAY_MS = 60;
|
||||
const STAGGER_DELAY_MS_OFFSET = 200;
|
||||
const STAGGER_DELAY_MS_OFFSET = 250;
|
||||
|
||||
export type SuggestionsProps = ComponentProps<typeof ScrollArea>;
|
||||
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ export function InputBox({
|
|||
</PromptInputTools>
|
||||
</PromptInputFooter>
|
||||
{isNewThread && searchParams.get("mode") !== "skill" && (
|
||||
<div className="absolute right-0 -bottom-12 left-0 z-0 flex items-center justify-center">
|
||||
<div className="absolute right-0 -bottom-24 left-0 z-0 flex items-center justify-center">
|
||||
<SuggestionList />
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -419,7 +419,7 @@ function SuggestionList() {
|
|||
[textInput],
|
||||
);
|
||||
return (
|
||||
<Suggestions className="w-fit">
|
||||
<Suggestions className="h-32 w-fit">
|
||||
<ConfettiButton
|
||||
className="text-muted-foreground cursor-pointer rounded-full px-4 text-xs font-normal"
|
||||
variant="outline"
|
||||
|
|
|
|||
Loading…
Reference in New Issue