Closed Bug 821717 Opened 12 years ago Closed 11 years ago

Table headers in the "Saved Searches" and "Email Prefs" panels are wrongly right-aligned

Categories

(Bugzilla :: User Interface, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: LpSolit, Assigned: chtrom)

References

Details

(Keywords: regression)

Attachments

(1 file, 3 obsolete files)

In the "Saved Searches" pref panel, the table headers should be centered, not right-aligned. This is a regression due to bug 547311.
This problem also occurs in the "Email Preferences" pref panel.

This could be fixed by adding a class to these elements. I don't see how any other CSS selection method would fix this without breaking something else.
Attached patch Patch.V1 (obsolete) — Splinter Review
This patch adds a "text-align: center;" rule and removes align="center" where the rule is applied.
Attachment #712062 - Flags: review?(LpSolit)
Comment on attachment 712062 [details] [diff] [review]
Patch.V1

=== modified file 'skins/standard/global.css'

 }
-
+table#email_prefs th,

Keep the empty line before this line. This is more readable.



>=== modified file 'template/en/default/account/prefs/email.html.tmpl'

>-    <td colspan="[% num_columns FILTER html %]" align="center" width="50%">
>+    <td colspan="[% num_columns FILTER html %]" width="50%">

There is no reason to remove align="center" from here. It's not a <th>.



>=== modified file 'template/en/default/account/prefs/saved-searches.html.tmpl'

>-  <table border="1" cellpadding="3">  
>+  <table id="saved_search_prefs" border="1" cellpadding="3">  

You must also fix the 2nd table, about shared queries.
Attachment #712062 - Flags: review?(LpSolit) → review-
Attached patch Patch.V2 (obsolete) — Splinter Review
Attachment #712062 - Attachment is obsolete: true
Attachment #714869 - Flags: review?(LpSolit)
Comment on attachment 714869 [details] [diff] [review]
Patch.V2

You didn't fix the 3rd part of my previous review, about the 2nd table in the Saved Search tab.
Attachment #714869 - Flags: review?(LpSolit) → review-
Assignee: ui → chtrom
Status: NEW → ASSIGNED
Attached patch Patch.V3 (obsolete) — Splinter Review
Sorry about that.
Attachment #714869 - Attachment is obsolete: true
Attachment #714918 - Flags: review?(LpSolit)
Comment on attachment 714918 [details] [diff] [review]
Patch.V3

It's illegal to use twice the same ID in a page (else document.getElementById() would be unable to retrive the right HTML object).
Attachment #714918 - Flags: review?(LpSolit) → review-
Attached patch Patch.V4Splinter Review
Attachment #714918 - Attachment is obsolete: true
Attachment #714953 - Flags: review?(LpSolit)
Comment on attachment 714953 [details] [diff] [review]
Patch.V4

>=== modified file 'template/en/default/account/prefs/saved-searches.html.tmpl'

>+  <table id="shared_search_prefs" border="1" cellpadding="3">  

>+  <table id="saved_search_prefs" border="1" cellpadding="3">  

Both names have been reversed. I will fix that on checkin. Thanks for the patch! r=LpSolit
Attachment #714953 - Flags: review?(LpSolit) → review+
Flags: approval+
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified skins/standard/global.css
modified template/en/default/account/prefs/email.html.tmpl
modified template/en/default/account/prefs/saved-searches.html.tmpl
Committed revision 8594.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Summary: Table headers in the "Saved Searches" pref panel are wrongly right-aligned → Table headers in the "Saved Searches" and "Email Prefs" panels are wrongly right-aligned
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: