spacing fix
This commit is contained in:
parent
e4e3d46203
commit
ac870367aa
2 changed files with 15 additions and 1 deletions
|
|
@ -83,6 +83,7 @@ export function OnboardingContent({
|
||||||
text="Let's get started by setting up your model provider."
|
text="Let's get started by setting up your model provider."
|
||||||
isLoadingModels={isLoadingModels}
|
isLoadingModels={isLoadingModels}
|
||||||
loadingStatus={loadingStatus}
|
loadingStatus={loadingStatus}
|
||||||
|
reserveSpaceForThinking={true}
|
||||||
>
|
>
|
||||||
<OnboardingCard
|
<OnboardingCard
|
||||||
onComplete={handleStepComplete}
|
onComplete={handleStepComplete}
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ interface OnboardingStepProps {
|
||||||
hideIcon?: boolean;
|
hideIcon?: boolean;
|
||||||
isLoadingModels?: boolean;
|
isLoadingModels?: boolean;
|
||||||
loadingStatus?: string[];
|
loadingStatus?: string[];
|
||||||
|
reserveSpaceForThinking?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OnboardingStep({
|
export function OnboardingStep({
|
||||||
|
|
@ -28,6 +29,7 @@ export function OnboardingStep({
|
||||||
hideIcon = false,
|
hideIcon = false,
|
||||||
isLoadingModels = false,
|
isLoadingModels = false,
|
||||||
loadingStatus = [],
|
loadingStatus = [],
|
||||||
|
reserveSpaceForThinking = false,
|
||||||
}: OnboardingStepProps) {
|
}: OnboardingStepProps) {
|
||||||
const [displayedText, setDisplayedText] = useState("");
|
const [displayedText, setDisplayedText] = useState("");
|
||||||
const [showChildren, setShowChildren] = useState(false);
|
const [showChildren, setShowChildren] = useState(false);
|
||||||
|
|
@ -151,7 +153,7 @@ export function OnboardingStep({
|
||||||
)}
|
)}
|
||||||
chatMessage={text}
|
chatMessage={text}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : reserveSpaceForThinking ? (
|
||||||
<div className="flex flex-col gap-2 py-1.5">
|
<div className="flex flex-col gap-2 py-1.5">
|
||||||
<p
|
<p
|
||||||
className={`text-foreground text-sm transition-colors duration-300 ${
|
className={`text-foreground text-sm transition-colors duration-300 ${
|
||||||
|
|
@ -165,6 +167,17 @@ export function OnboardingStep({
|
||||||
</p>
|
</p>
|
||||||
<div className="h-6" />
|
<div className="h-6" />
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<p
|
||||||
|
className={`text-foreground text-sm py-1.5 transition-colors duration-300 ${
|
||||||
|
isCompleted ? "text-placeholder-foreground" : ""
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{displayedText}
|
||||||
|
{!showChildren && !isCompleted && (
|
||||||
|
<span className="inline-block w-1 h-3.5 bg-primary ml-1 animate-pulse" />
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
)}
|
)}
|
||||||
{children && (
|
{children && (
|
||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue