Closed Bug 658197 Opened 13 years ago Closed 13 years ago

"No messages match your search" message displaying badly when not en-US

Categories

(Thunderbird :: Search, defect)

x86
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: goofy.bugzilla, Assigned: goofy.bugzilla)

Details

Attachments

(3 files, 6 obsolete files)

When an initial search fails to have any result, a more extensive search is proposed hitting the ENTER key. If this second search also fails, the message
"No messages match your search" is displayed.
Problem is:
en-US string is diplayed ok for the div dimensions in which it is stuck along with the image. 
BUT for more verbose langs (see first screenshot with en-US / French / Dutch / Spanish) the string is badly cut.

This minor layout issue can be corrected with the suggested patch, just adding a < br/> in the .xhtml file
Of course you smart guys may consider to tweak the css file instead ;-)
Attachment #533556 - Flags: review?(bwinton)
Assignee: nobody → GoofyFr
Status: NEW → ASSIGNED
Comment on attachment 533556 [details] [diff] [review]
adding < br/> to have more room for text under the image

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

Seems good.  I'ld prefer it if we could keep the line length under 80 characters, though.

r=me with that fixed.

And, while I'm here, you'll need a ui-review, too.  So, I like the way it looks, but I want the image to be centered over the text, not pushed over to the right.

ui-r=me with _that_ fixed.  :)

Thanks,
Blake.
Attachment #533556 - Flags: ui-review+
Attachment #533556 - Flags: review?(bwinton)
Attachment #533556 - Flags: review+
this new tentative patch suggest a code indentation.
Attachment #533556 - Attachment is obsolete: true
Attachment #534212 - Flags: review?(bwinton)
For the centered image request, I am not sure what you mean exactly. without css tweks in my patch, the image as shown in the screenshot is centered relatively to the text. Do you mean the image should be left-align ?
Attachment #533558 - Attachment is obsolete: true
Attachment #534214 - Flags: ui-review?(bwinton)
Comment on attachment 534214 [details]
capture with patch applied - centered image/text highlighted

Hmm.  That's what I want it to look like, but I see http://dl.dropbox.com/u/2301433/Screenshots/TooFarRight.png instead of the centered image.  I'm on Mac OS X, if that could make a difference.
Attachment #534214 - Flags: ui-review?(bwinton) → ui-review+
Comment on attachment 534212 [details] [diff] [review]
adding < br/> to have more space left

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

I mostly like this, but there are a couple of indentation/spacing nits that I think should be fixed.  (Also, I think it would be good to get the centering working on Mac, and Windows.  Now that I've tested it on both, I'm starting to think that it might be the English that's misaligned, instead of it being due to the platform.)

::: mail/base/content/glodaFacetView.xhtml
@@ +70,5 @@
>            <div id="data-column">
>              <div id="facet-date" class="facetious" type="date" />
>              <div class="results" id="results" type="message" />
> +            <div class="loading" id="showLoading">
> +					<span class="loading">

We use two-space indentation, and no tabs.

@@ +71,5 @@
>              <div id="facet-date" class="facetious" type="date" />
>              <div class="results" id="results" type="message" />
> +            <div class="loading" id="showLoading">
> +					<span class="loading">
> +						<img class="loading" 

There's an extra space at the end of this line.

@@ +72,5 @@
>              <div class="results" id="results" type="message" />
> +            <div class="loading" id="showLoading">
> +					<span class="loading">
> +						<img class="loading" 
> +							src="chrome://global/skin/icons/loading_16.png"/>

The "src=" should line up with the start of the "class=" here.

@@ +78,5 @@
> +					</span>
> +			</div>
> +            <div class="empty"	id="showEmpty">
> +					<span class="empty">
> +						<img class="empty" 

(And another extra space here.)
Attachment #534212 - Flags: review?(bwinton) → review-
Attached patch Fix addressing the comments (obsolete) — Splinter Review
Attachment #534212 - Attachment is obsolete: true
Blake can we get this in and spawn the centered issue in another bug ?
I don't think so, mostly because I feel that it _really_ shouldn't be that hard to make it all line up.  (I took a stab at it yesterday, but ChromeBug doesn't work on Trunk, so I failed. :( )
(But ChromeBug works on trunk!  And it looks like removing:
padding: 1em;
from http://mxr.mozilla.org/comm-central/source/mail/base/content/glodaFacetView.css#814 fixes it, so r=me for the current patch with that added.)

Later,
Blake.
Attachment #535353 - Flags: review?(bwinton)
Attachment #535353 - Attachment is obsolete: true
Attachment #535353 - Flags: review?(bwinton)
Comment on attachment 535355 [details] [diff] [review]
nd yet another attempt (indentation + centering)

Review of attachment 535355 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #535355 - Flags: review?(bwinton)
Attachment #535276 - Attachment is obsolete: true
Attachment #535355 - Attachment is obsolete: true
Attachment #535355 - Flags: review?(bwinton)
Attachment #535395 - Flags: review?(bwinton)
Comment on attachment 535395 [details] [diff] [review]
Cleanup up patch from goofy

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

I like it.  I've got a couple of nits below, but would be happy to fix them when I land this.

Thanks,
Blake.

::: mail/base/content/glodaFacetView.xhtml
@@ +72,5 @@
>              <div class="results" id="results" type="message" />
> +            <div class="loading" id="showLoading">
> +              <span class="loading">
> +                <img class="loading"
> +                  src="chrome://global/skin/icons/loading_16.png"/>

src should line up with class.

@@ +73,5 @@
> +            <div class="loading" id="showLoading">
> +              <span class="loading">
> +                <img class="loading"
> +                  src="chrome://global/skin/icons/loading_16.png"/>
> +                  &glodaFacetView.loading.label;

&glodaFacetView should line up with <img.

@@ +80,5 @@
> +            <div class="empty"	id="showEmpty">
> +              <span class="empty">
> +                <img class="empty"
> +                     src="chrome://messenger/skin/icons/empty-search-results.png"/><br/>
> +                     &glodaFacetView.empty.label;

&glodaFacetView should line up with <img.
Attachment #535395 - Flags: review?(bwinton) → review+
sorry :(
Keywords: checkin-needed
Blake: can you fix this up and check it in? (or can someone post a new patch). I don't generally like checkin-needed for patches that need extra tweaks.
Keywords: checkin-needed
Committed as http://hg.mozilla.org/comm-central/rev/48d8cac97e59
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: