summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-02-07 19:33:44 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-08 21:07:03 +0000
commit930ddd693be251c86ee904dafbaef38234b692c0 (patch)
tree937c39c3e6c1e912f4e3f625c527e1b1919e0c78
parent4cdd532738b1eced88429576e2b83d7a6360a093 (diff)
downloaduxp-930ddd693be251c86ee904dafbaef38234b692c0.tar.gz
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.
-rw-r--r--toolkit/themes/linux/global/global.css3
-rw-r--r--toolkit/themes/windows/global/global.css3
2 files changed, 6 insertions, 0 deletions
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 6b6a21ca3e..dcfe6ef60f 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 {