From 0384b0ee3f57fbf77038e786f08c254a0e1b27ea Mon Sep 17 00:00:00 2001 From: James Koster <james@jameskoster.co.uk> Date: Thu, 20 Jun 2024 10:07:04 +0100 Subject: [PATCH 1/2] Improve handling of long post titles --- packages/editor/src/components/post-card-panel/style.scss | 1 + packages/editor/src/components/post-url/style.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/editor/src/components/post-card-panel/style.scss b/packages/editor/src/components/post-card-panel/style.scss index f715f2318f842f..433623e326036e 100644 --- a/packages/editor/src/components/post-card-panel/style.scss +++ b/packages/editor/src/components/post-card-panel/style.scss @@ -14,6 +14,7 @@ flex-wrap: wrap; column-gap: $grid-unit-10; row-gap: $grid-unit-05; + hyphens: auto; } } diff --git a/packages/editor/src/components/post-url/style.scss b/packages/editor/src/components/post-url/style.scss index a711402f1a82eb..c815f89682cb2d 100644 --- a/packages/editor/src/components/post-url/style.scss +++ b/packages/editor/src/components/post-url/style.scss @@ -26,3 +26,7 @@ .editor-post-url__input input.components-input-control__input { padding-inline-start: 0 !important; } + +.editor-post-url__panel-toggle { + word-break: break-word; +} From bc340afb75ef4955ce98ec337454a76771386d46 Mon Sep 17 00:00:00 2001 From: James Koster <james@jameskoster.co.uk> Date: Mon, 24 Jun 2024 10:06:31 +0100 Subject: [PATCH 2/2] Break words in post card title --- packages/editor/src/components/post-card-panel/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-card-panel/style.scss b/packages/editor/src/components/post-card-panel/style.scss index 433623e326036e..3547b0ab104936 100644 --- a/packages/editor/src/components/post-card-panel/style.scss +++ b/packages/editor/src/components/post-card-panel/style.scss @@ -14,7 +14,7 @@ flex-wrap: wrap; column-gap: $grid-unit-10; row-gap: $grid-unit-05; - hyphens: auto; + word-break: break-word; } }