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;
|
||||
case "three-cards":
|
||||
minWidth = "min-w-[1066px]";
|
||||
height = "h-fit";
|
||||
height = "max-h-[94vh]";
|
||||
break;
|
||||
case "large-thin":
|
||||
minWidth = "min-w-[65vw]";
|
||||
|
|
|
|||
|
|
@ -17,44 +17,48 @@ export default function NewFlowModal({
|
|||
Get Started
|
||||
</span>
|
||||
</BaseModal.Header>
|
||||
<BaseModal.Content>
|
||||
<div className="mb-5 grid h-fit w-full grid-cols-3 gap-4 overflow-auto pb-6 custom-scroll">
|
||||
<NewFlowCardComponent />
|
||||
<BaseModal.Content overflowHidden>
|
||||
<div className="overflow-y-auto rounded-md border bg-muted p-4">
|
||||
<div className="grid w-full grid-cols-3 gap-4">
|
||||
<NewFlowCardComponent />
|
||||
|
||||
{examples.find((e) => e.name == "Basic Prompting (Hello, World)") && (
|
||||
<UndrawCardComponent
|
||||
key={0}
|
||||
flow={
|
||||
examples.find(
|
||||
(e) => e.name == "Basic Prompting (Hello, World)",
|
||||
)!
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{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}
|
||||
flow={examples.find((e) => e.name == "Document QA")!}
|
||||
/>
|
||||
)}
|
||||
{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}
|
||||
flow={examples.find((e) => e.name == "Vector Store RAG")!}
|
||||
/>
|
||||
)}
|
||||
{examples.find(
|
||||
(e) => e.name == "Basic Prompting (Hello, World)",
|
||||
) && (
|
||||
<UndrawCardComponent
|
||||
key={0}
|
||||
flow={
|
||||
examples.find(
|
||||
(e) => e.name == "Basic Prompting (Hello, World)",
|
||||
)!
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{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}
|
||||
flow={examples.find((e) => e.name == "Document QA")!}
|
||||
/>
|
||||
)}
|
||||
{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}
|
||||
flow={examples.find((e) => e.name == "Vector Store RAG")!}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</BaseModal.Content>
|
||||
</BaseModal>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue