feat: add vertical scrolling capability to starter examples (#2739)
* Fixed vertical size of newFlowModal * Added vertical scroll options to newFlowModal and added wrapper to look nice
This commit is contained in:
parent
e5856b3036
commit
424118be7b
2 changed files with 42 additions and 38 deletions
|
|
@ -40,7 +40,7 @@ export const switchCaseModalSize = (size: string) => {
|
||||||
break;
|
break;
|
||||||
case "three-cards":
|
case "three-cards":
|
||||||
minWidth = "min-w-[1066px]";
|
minWidth = "min-w-[1066px]";
|
||||||
height = "h-fit";
|
height = "max-h-[94vh]";
|
||||||
break;
|
break;
|
||||||
case "large-thin":
|
case "large-thin":
|
||||||
minWidth = "min-w-[65vw]";
|
minWidth = "min-w-[65vw]";
|
||||||
|
|
|
||||||
|
|
@ -17,44 +17,48 @@ export default function NewFlowModal({
|
||||||
Get Started
|
Get Started
|
||||||
</span>
|
</span>
|
||||||
</BaseModal.Header>
|
</BaseModal.Header>
|
||||||
<BaseModal.Content>
|
<BaseModal.Content overflowHidden>
|
||||||
<div className="mb-5 grid h-fit w-full grid-cols-3 gap-4 overflow-auto pb-6 custom-scroll">
|
<div className="overflow-y-auto rounded-md border bg-muted p-4">
|
||||||
<NewFlowCardComponent />
|
<div className="grid w-full grid-cols-3 gap-4">
|
||||||
|
<NewFlowCardComponent />
|
||||||
|
|
||||||
{examples.find((e) => e.name == "Basic Prompting (Hello, World)") && (
|
{examples.find(
|
||||||
<UndrawCardComponent
|
(e) => e.name == "Basic Prompting (Hello, World)",
|
||||||
key={0}
|
) && (
|
||||||
flow={
|
<UndrawCardComponent
|
||||||
examples.find(
|
key={0}
|
||||||
(e) => e.name == "Basic Prompting (Hello, World)",
|
flow={
|
||||||
)!
|
examples.find(
|
||||||
}
|
(e) => e.name == "Basic Prompting (Hello, World)",
|
||||||
/>
|
)!
|
||||||
)}
|
}
|
||||||
{examples.find((e) => e.name == "Memory Chatbot") && (
|
/>
|
||||||
<UndrawCardComponent
|
)}
|
||||||
key={1}
|
{examples.find((e) => e.name == "Memory Chatbot") && (
|
||||||
flow={examples.find((e) => e.name == "Memory Chatbot")!}
|
<UndrawCardComponent
|
||||||
/>
|
key={1}
|
||||||
)}
|
flow={examples.find((e) => e.name == "Memory Chatbot")!}
|
||||||
{examples.find((e) => e.name == "Document QA") && (
|
/>
|
||||||
<UndrawCardComponent
|
)}
|
||||||
key={2}
|
{examples.find((e) => e.name == "Document QA") && (
|
||||||
flow={examples.find((e) => e.name == "Document QA")!}
|
<UndrawCardComponent
|
||||||
/>
|
key={2}
|
||||||
)}
|
flow={examples.find((e) => e.name == "Document QA")!}
|
||||||
{examples.find((e) => e.name == "Blog Writer") && (
|
/>
|
||||||
<UndrawCardComponent
|
)}
|
||||||
key={3}
|
{examples.find((e) => e.name == "Blog Writer") && (
|
||||||
flow={examples.find((e) => e.name == "Blog Writer")!}
|
<UndrawCardComponent
|
||||||
/>
|
key={3}
|
||||||
)}
|
flow={examples.find((e) => e.name == "Blog Writer")!}
|
||||||
{examples.find((e) => e.name == "Vector Store RAG") && (
|
/>
|
||||||
<UndrawCardComponent
|
)}
|
||||||
key={4}
|
{examples.find((e) => e.name == "Vector Store RAG") && (
|
||||||
flow={examples.find((e) => e.name == "Vector Store RAG")!}
|
<UndrawCardComponent
|
||||||
/>
|
key={4}
|
||||||
)}
|
flow={examples.find((e) => e.name == "Vector Store RAG")!}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue