public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH widget-toolkit] fix #3930: gui: Stop text from overflowing for long words
@ 2022-05-27 14:06 Daniel Tschlatscher
  0 siblings, 0 replies; only message in thread
From: Daniel Tschlatscher @ 2022-05-27 14:06 UTC (permalink / raw)
  To: pve-devel

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-27 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27 14:06 [pve-devel] [PATCH widget-toolkit] fix #3930: gui: Stop text from overflowing for long words Daniel Tschlatscher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal