From 2073c44990c54e5d7d75e7d1d1a0da7daad97d58 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 7 Feb 2022 19:33:44 +0000 Subject: [PATCH] No Issue - Break overly long tooltips into multiple lines. A very very old bug and annoyance: tooltips with very long content without spaces (e.g. long URLs or gibberish data) would just cut off and leave an un-styled right border going over the widget's constrained space. Because of an additional bug (still unsolved), this was never properly addressed because solutions attempted didn't work. The workaround for the secondary bug allows for word-break to now work and this primary problem to be resolved. --- toolkit/themes/linux/global/global.css | 3 +++ toolkit/themes/windows/global/global.css | 3 +++ 2 files changed, 6 insertions(+) diff --git a/toolkit/themes/linux/global/global.css b/toolkit/themes/linux/global/global.css index 9328f7a66b..947b45107f 100644 --- a/toolkit/themes/linux/global/global.css +++ b/toolkit/themes/linux/global/global.css @@ -244,6 +244,9 @@ label[disabled="true"] { .tooltip-label { margin: 0; + word-wrap: break-word; + /* We must specify a min-width, otherwise word-wrap:break-word doesn't work. Bug 630864. */ + min-width: 1px; } .header { diff --git a/toolkit/themes/windows/global/global.css b/toolkit/themes/windows/global/global.css index 573245296e..0712d19a4f 100644 --- a/toolkit/themes/windows/global/global.css +++ b/toolkit/themes/windows/global/global.css @@ -254,6 +254,9 @@ label[disabled="true"]:-moz-system-metric(windows-classic) { .tooltip-label { margin: 0; + word-wrap: break-word; + /* We must specify a min-width, otherwise word-wrap:break-word doesn't work. Bug 630864. */ + min-width: 1px; } .header {