[pve-devel] [PATCH widget-toolkit] fix #3930: gui: Stop text from overflowing for long words

Daniel Tschlatscher d.tschlatscher at proxmox.com
Fri May 27 16:06:27 CEST 2022


In the case where a status message would include a word that exceeds
the line length it would simply overflow and as the MessageBox does
not allow scrolling, there was no obvious way to read/access that part
of the sentence.
overflow-wrap: break-word fixes this quite elegantly as it only breaks
a word if it doesn't fit in it's own line.

This mostly affects the error message when adding a PBS in the storage
tab and the fingerprint is not set. Now it is possible to simply copy
it from the error message.
AFAICT the style override does not break any styling for the status
and error message modals in the PVE, PMG and PBS.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher at proxmox.com>
---
 src/Toolkit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Toolkit.js b/src/Toolkit.js
index a1d291e..450a3bc 100644
--- a/src/Toolkit.js
+++ b/src/Toolkit.js
@@ -718,6 +718,7 @@ Ext.onReady(function() {
 	    return this.show(config);
 	    }
 	},
+	style: "overflow-wrap: break-word;",
     });
 });
 Ext.define('Ext.ux.IFrame', {
-- 
2.30.2






More information about the pve-devel mailing list