* remove double x

* incorporate base default padding for modals
This commit is contained in:
pablonyx
2024-12-11 10:47:26 -08:00
committed by GitHub
parent 637404f482
commit f2bedb8fdd
3 changed files with 3 additions and 6 deletions

View File

@@ -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!

View File

@@ -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">

View File

@@ -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]"
)} )}
> >