From a05ee2483b518d092b3441a29bd9168eb770ea3d Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Sat, 25 Oct 2025 03:22:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20adjust=20form=20style=20for=20cr?= =?UTF-8?q?eateblueprintform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CreateBlueprintForm.tsx | 22 +++++++++++++--------- src/components/Settings.tsx | 22 ++++++++++++++++++---- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/components/CreateBlueprintForm.tsx b/src/components/CreateBlueprintForm.tsx index 57fce664..3bb35f6f 100644 --- a/src/components/CreateBlueprintForm.tsx +++ b/src/components/CreateBlueprintForm.tsx @@ -69,13 +69,17 @@ export default function CreateBlueprintForm({ ), defaultValues: { name: "", - contents: `proxy-resources: - resource-nice-id-uno: - name: this is my resource - protocol: http - full-domain: never-gonna-give-you-up.example.com - host-header: example.com - tls-server-name: example.com + contents: `# Example blueprint +# proxy-resources: +# resource-nice-id-uno: +# name: this is my resource +# protocol: http +# full-domain: never-gonna-give-you-up.example.com +# targets: +# - site: lively-yosemite-toad +# hostname: localhost +# method: http +# port: 8000 ` } }); @@ -125,7 +129,7 @@ export default function CreateBlueprintForm({ - +
{children}
; } export function SettingsSection({ children }: { children: React.ReactNode }) { - return
{children}
; + return ( +
+ {children} +
+ ); } export function SettingsSectionHeader({ @@ -15,11 +21,15 @@ export function SettingsSectionHeader({ } export function SettingsSectionForm({ - children + children, + className }: { children: React.ReactNode; + className?: string; }) { - return
{children}
; + return ( +
{children}
+ ); } export function SettingsSectionTitle({ @@ -55,7 +65,11 @@ export function SettingsSectionFooter({ }: { children: React.ReactNode; }) { - return
{children}
; + return ( +
+ {children} +
+ ); } export function SettingsSectionGrid({