fix: Adjust the style of the HumanRelayDialog component to increase the maximum height and spacing of the content area (#1791)

* fix: Add special handling to human-relay providers, optimize configuration check logic

* fix: Remove the debug log in the checkExistKey function

* fix: Adjust the style of the HumanRelayDialog component to increase the maximum height and spacing of the content area
This commit is contained in:
Felix NyxJae 2025-03-19 12:09:04 +08:00 committed by GitHub
parent 3575274718
commit beb4cfbbf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,13 +66,13 @@ export const HumanRelayDialog: React.FC<HumanRelayDialogProps> = ({
return (
<Dialog open={isOpen} onOpenChange={(open) => !open && handleCancel()}>
<DialogContent className="sm:max-w-[600px]">
<DialogContent className="sm:max-w-[600px] overflow-y-auto max-h-[80vh]">
<DialogHeader>
<DialogTitle>{t("humanRelay:dialogTitle")}</DialogTitle>
<DialogDescription>{t("humanRelay:dialogDescription")}</DialogDescription>
</DialogHeader>
<div className="grid gap-4 py-4">
<div className="grid gap-6 py-6">
<div className="relative">
<Textarea
className="min-h-[200px] font-mono text-sm p-4 pr-12 whitespace-pre-wrap"