From cb7f1de348f092b875be79021f41facf45d3f0f2 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 5 Dec 2017 05:02:28 +0300 Subject: [PATCH] use hyphens when breaking words (works only in FF though) --- edit/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/edit.js b/edit/edit.js index d6d1fcd2..0e95c192 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -107,7 +107,7 @@ function preinit() { if (widthFor1stChild > 50) { for (const el of $$('#options .aligned > :nth-child(1)')) { if (el.offsetWidth > widthFor1stChild) { - el.style.wordBreak = 'break-all'; + el.style.cssText = 'word-break: break-all; hyphens: auto;'; } } } else {