Browse Source

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
Felix NyxJae 9 months ago
parent
commit
beb4cfbbf8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      webview-ui/src/components/human-relay/HumanRelayDialog.tsx

+ 2 - 2
webview-ui/src/components/human-relay/HumanRelayDialog.tsx

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