From a2845ddafe118851a4cb32b4044fde1d6a640764 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 16 Jun 2025 21:53:43 +0200 Subject: [PATCH] Enable word wrapping in Monaco editors --- virtweb_frontend/src/widgets/forms/CloudInitEditor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtweb_frontend/src/widgets/forms/CloudInitEditor.tsx b/virtweb_frontend/src/widgets/forms/CloudInitEditor.tsx index 7be3d49..f8fc928 100644 --- a/virtweb_frontend/src/widgets/forms/CloudInitEditor.tsx +++ b/virtweb_frontend/src/widgets/forms/CloudInitEditor.tsx @@ -142,6 +142,7 @@ function CloudInitRawUserData(p: CloudInitProps): React.ReactElement { options={{ readOnly: !p.editable, quickSuggestions: { other: true, comments: true, strings: true }, + wordWrap: "on", }} language="yaml" height={"30vh"} @@ -178,6 +179,7 @@ function CloudInitNetworkConfig(p: CloudInitProps): React.ReactElement { options={{ readOnly: !p.editable, quickSuggestions: { other: true, comments: true, strings: true }, + wordWrap: "on", }} language="yaml" height={"30vh"}