text: wrap property doesn't break words by default, add workaround to docs (#243)

This commit is contained in:
jean-emmanuel 2018-03-22 12:52:32 +01:00
parent 77a48d5c8e
commit 6cc9fe2ea7
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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`

View file

@ -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);