Closed Bug 1681010 Opened 3 years ago Closed 3 years ago

Overlapping text in search box

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 84
x86_64
All
defect

Tracking

(thunderbird_esr78 verified, thunderbird84 affected, thunderbird85 verified)

VERIFIED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- verified
thunderbird84 --- affected
thunderbird85 --- verified

People

(Reporter: avinashrocks1990, Assigned: Paenglab)

References

Details

(Keywords: regression)

Attachments

(4 files, 1 obsolete file)

Attached image thunderbird search.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0

Steps to reproduce:

Open Thunderbird
Open Today's pane

Actual results:

The text in search box beside quick filter is overlapping with magnifying glass.

Expected results:

The text should resize to fit the search box.

I can reproduce using 84.0b3 and 78.5.1 on Ubuntu 18.04 LTS when resizing the window smaller.
The text disappears from the search box when resizing the window using version 68.10.0 from Ubuntu.

Status: UNCONFIRMED → NEW
Component: Untriaged → Mail Window Front End
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → x86_64

Richard, right now the background of the magnifier icon seems to be transparent, which seems to cause the distorted look. Could this be fixed by assigning the background color variable of the search input to the magnifier icon image?

Flags: needinfo?(richard.marti)
Attached patch 1681010-gloda-searchbox.patch (obsolete) — Splinter Review

I moved the search glass to the left like we have already for the other search boxes which use the toolkit styling. Instead of a background image I'm using now a separate image to be able to turn it on RTL languages. The placeholder text begins now at the correct position and will be cut at the end of the box like it should.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Flags: needinfo?(richard.marti)
Attachment #9192057 - Flags: review?(alessandro)
Comment on attachment 9192057 [details] [diff] [review]
1681010-gloda-searchbox.patch

Review of attachment 9192057 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good.
Too bad we don't have the gloda search as a Custom Element like the `search-textbox`, maybe for another bug.

::: mail/themes/linux/mail/searchBox.css
@@ +11,5 @@
>  
> +.search-icon {
> +  list-style-image: url(chrome://global/skin/icons/search-textbox.svg);
> +  margin-inline: 7px -21px;
> +}

Any chance of putting this in a shared file?
How does it look on macos?
Attachment #9192057 - Flags: review?(alessandro) → review+

Unified as much as possible.

Attachment #9192057 - Attachment is obsolete: true
Attachment #9192260 - Flags: review?(alessandro)
Comment on attachment 9192260 [details] [diff] [review]
1681010-gloda-searchbox.patch  [landed on C-C]

Review of attachment 9192260 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, thanks.
Attachment #9192260 - Flags: review?(alessandro) → review+
Target Milestone: --- → 85 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/409b280ef386
Use the toolkit search-textbox.svg to unify the search text box styling. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Wow, that was quick after I invited Richard to the party, thanks much to Richard and Alex!

Opposite to the icons on Linux and Windows, the Mac icon has no colour set for the search glass so we need to set it. Best visible with the dark theme.

Attachment #9193257 - Flags: review?(alessandro)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 9193257 [details] [diff] [review]
1681010-mac-fix-search-icon-color.patch

Review of attachment 9193257 [details] [diff] [review]:
-----------------------------------------------------------------

Ah, I completely missed this.
Thanks!
Attachment #9193257 - Flags: review?(alessandro) → review+
Attachment #9192260 - Attachment filename: 1681010-gloda-searchbox.patch → 1681010-gloda-searchbox.patch [landed on C-C]
Attachment #9192260 - Attachment description: 1681010-gloda-searchbox.patch → 1681010-gloda-searchbox.patch [landed on C-C]
Attachment #9192260 - Attachment filename: 1681010-gloda-searchbox.patch [landed on C-C] → 1681010-gloda-searchbox.patch

Should we request an uplift for these?

Comment on attachment 9192260 [details] [diff] [review]
1681010-gloda-searchbox.patch [landed on C-C]

[Approval Request Comment]
User impact if declined: placeholder text overlaps the search glass with narrow search field
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9192260 - Flags: approval-comm-esr78?
Attachment #9192260 - Flags: approval-comm-beta?

Comment on attachment 9193257 [details] [diff] [review]
1681010-mac-fix-search-icon-color.patch

[Approval Request Comment]
User impact if declined: placeholder text overlaps the search glass with narrow search field
Testing completed (on c-c, etc.): soon on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9193257 - Flags: approval-comm-esr78?
Attachment #9193257 - Flags: approval-comm-beta?

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6ed5bceb4661
Follow-up: Fix the search glass color on macOS. r=aleca

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED

Comment on attachment 9192260 [details] [diff] [review]
1681010-gloda-searchbox.patch [landed on C-C]

ESR needs his own patch.

Attachment #9192260 - Flags: approval-comm-esr78?
Attachment #9193257 - Flags: approval-comm-esr78?

[Approval Request Comment]
User impact if declined: placeholder text overlaps the search glass with narrow search field
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9193462 - Flags: approval-comm-esr78?

Comment on attachment 9192260 [details] [diff] [review]
1681010-gloda-searchbox.patch [landed on C-C]

[Triage Comment]
Approved for beta

Attachment #9192260 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9193257 [details] [diff] [review]
1681010-mac-fix-search-icon-color.patch

[Triage Comment]
Approved for beta

Attachment #9193257 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9193462 [details] [diff] [review]
1681010-gloda-searchbox-ESR.patch

[Triage Comment]

Attachment #9193462 - Flags: approval-comm-esr78? → approval-comm-esr78+

Please clarify: Only attachment 9193462 [details] [diff] [review] for esr78?

Flags: needinfo?(richard.marti)

(In reply to Rob Lemley [:rjl] from comment #21)

Please clarify: Only attachment 9193462 [details] [diff] [review] for esr78?

Yes.

Flags: needinfo?(richard.marti)

Verifying in the 78.6.1 rc on Windows 10.

Status: RESOLVED → VERIFIED
Regressions: 1687034
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: