From 25567771ffcc7ad6612e7bead839fac2c53bc30f Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 7 Feb 2022 19:33:44 +0000 Subject: 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. --- system/themes/linux/global/global.css | 3 +++ system/themes/windows/global/global.css | 3 +++ 2 files changed, 6 insertions(+) (limited to 'system') diff --git a/system/themes/linux/global/global.css b/system/themes/linux/global/global.css index 9328f7a66..947b45107 100644 --- a/system/themes/linux/global/global.css +++ b/system/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/system/themes/windows/global/global.css b/system/themes/windows/global/global.css index 6b6a21ca3..dcfe6ef60 100644 --- a/system/themes/windows/global/global.css +++ b/system/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 { -- cgit v1.2.3