From 8fab5c4e61281601b500c39671325e37be8df3c1 Mon Sep 17 00:00:00 2001 From: israellund Date: Tue, 22 Oct 2024 13:42:13 -0400 Subject: [PATCH 1/2] editor no longer adds extras lines after pressing enter --- .../styles/components/react_quill/markdown_formatted_text.scss | 1 - .../styles/components/react_quill/react_quill_editor.scss | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/commonwealth/client/styles/components/react_quill/markdown_formatted_text.scss b/packages/commonwealth/client/styles/components/react_quill/markdown_formatted_text.scss index ae435c818d0..7653262c422 100644 --- a/packages/commonwealth/client/styles/components/react_quill/markdown_formatted_text.scss +++ b/packages/commonwealth/client/styles/components/react_quill/markdown_formatted_text.scss @@ -7,7 +7,6 @@ position: relative; word-break: break-word; - white-space: pre-wrap; @include formatted-text(); @include collapsible(); @include hidden-formatting(); diff --git a/packages/commonwealth/client/styles/components/react_quill/react_quill_editor.scss b/packages/commonwealth/client/styles/components/react_quill/react_quill_editor.scss index 0abe41097f9..3a4398b0459 100644 --- a/packages/commonwealth/client/styles/components/react_quill/react_quill_editor.scss +++ b/packages/commonwealth/client/styles/components/react_quill/react_quill_editor.scss @@ -14,8 +14,6 @@ .MarkdownPreview { min-height: 255px; padding: 16px; - white-space: pre-wrap; /* This will render single newlines as line breaks */ - word-wrap: break-word; } .CustomQuillToolbar { From 0351bef203f9022ed065ffe0e0b4b6a3ee369a84 Mon Sep 17 00:00:00 2001 From: Timothee Legros Date: Wed, 23 Oct 2024 23:13:07 +0300 Subject: [PATCH 2/2] signable headers and sameSite lax --- libs/adapters/src/blobStorage/util.ts | 1 + packages/commonwealth/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/adapters/src/blobStorage/util.ts b/libs/adapters/src/blobStorage/util.ts index d0591bf1337..037743d65e7 100644 --- a/libs/adapters/src/blobStorage/util.ts +++ b/libs/adapters/src/blobStorage/util.ts @@ -31,6 +31,7 @@ export async function getSignedUrl_S3sdk( }), { expiresIn: options.ttl, + signableHeaders: new Set(['content-type']), }, ); } diff --git a/packages/commonwealth/main.ts b/packages/commonwealth/main.ts index 9161d2afdc2..e6775d61898 100644 --- a/packages/commonwealth/main.ts +++ b/packages/commonwealth/main.ts @@ -82,6 +82,7 @@ export async function main( saveUninitialized: false, cookie: { maxAge: config.AUTH.SESSION_EXPIRY_MILLIS, + sameSite: 'lax', }, });