mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 20:38:32 +02:00
Borders (#3388)
* remove double x * incorporate base default padding for modals
This commit is contained in:
@@ -82,7 +82,7 @@ export const DanswerApiKeyForm = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{({ isSubmitting, values, setFieldValue }) => (
|
{({ isSubmitting, values, setFieldValue }) => (
|
||||||
<Form>
|
<Form className="w-full overflow-visible">
|
||||||
<Text className="mb-4 text-lg">
|
<Text className="mb-4 text-lg">
|
||||||
Choose a memorable name for your API key. This is optional and
|
Choose a memorable name for your API key. This is optional and
|
||||||
can be added or changed later!
|
can be added or changed later!
|
||||||
|
@@ -45,9 +45,6 @@ function NewApiKeyModal({
|
|||||||
<div className="px-8 py-8">
|
<div className="px-8 py-8">
|
||||||
<div className="flex w-full border-b border-border mb-4 pb-4">
|
<div className="flex w-full border-b border-border mb-4 pb-4">
|
||||||
<Title>New API Key</Title>
|
<Title>New API Key</Title>
|
||||||
<div onClick={onClose} className="ml-auto p-1 rounded hover:bg-hover">
|
|
||||||
<FiX size={18} />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="h-32">
|
<div className="h-32">
|
||||||
<Text className="mb-4">
|
<Text className="mb-4">
|
||||||
|
@@ -99,7 +99,7 @@ export function Modal({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="w-full overflow-y-hidden flex flex-col h-full justify-stretch">
|
<div className="w-full overflow-y-auto overflow-x-visible p-1 flex flex-col h-full justify-stretch">
|
||||||
{title && (
|
{title && (
|
||||||
<>
|
<>
|
||||||
<div className="flex mb-4">
|
<div className="flex mb-4">
|
||||||
@@ -117,7 +117,7 @@ export function Modal({
|
|||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
noScroll ? "overflow-auto" : "overflow-x-hidden",
|
noScroll ? "overflow-auto" : "overflow-x-visible",
|
||||||
height || "max-h-[60vh]"
|
height || "max-h-[60vh]"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user