From 694a9596f51302b7ed82a1d70c59d07f19a0a4c9 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 22 Mar 2018 12:52:32 +0100 Subject: [PATCH] text: `wrap` property doesn't break words by default, add workaround to docs (#243) --- CHANGELOG.md | 3 ++- resources/docs/widgets/plots.md | 2 +- src/browser/scss/widgets/_plots.scss | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d72719e..a4cf8f3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ - widgets - matrices: support setting `split` property as a string to allow using children's indexes in their address (`$` is replaced with the index number) - + - text: `wrap` property doesn't break words by default anymore + ## 0.27.2 - bug fixes diff --git a/resources/docs/widgets/plots.md b/resources/docs/widgets/plots.md index 6253cc4f..d977a90e 100644 --- a/resources/docs/widgets/plots.md +++ b/resources/docs/widgets/plots.md @@ -199,7 +199,7 @@ Text displays incoming values (via osc) as text. Sending a message with no argum ### `wrap` - type: `boolean` - default: `false` -- usage: set to `true` to wrap long lines automatically +- usage: set to `true` to wrap long lines automatically. This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property. ### `align` - type: `string` diff --git a/src/browser/scss/widgets/_plots.scss b/src/browser/scss/widgets/_plots.scss index fca5fbd1..b6a39d50 100644 --- a/src/browser/scss/widgets/_plots.scss +++ b/src/browser/scss/widgets/_plots.scss @@ -70,7 +70,6 @@ display: flex; align-items: center; white-space: pre; - word-break: break-all; background: var(--color-track); color:var(--color-custom); border: 1rem solid var(--color-bg);