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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to