Closed Bug 388566 Opened 17 years ago Closed 17 years ago

Set a minimum width for calendar and mode toolbar icons

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sipaq, Assigned: sipaq)

References

Details

Attachments

(7 files)

Both Firefox and Thunderbird set minimum-width for their toolbar icons and after discussion with Christian, I think that such a minor change would improve our UI.
Attached image Mode toolbar without min-width —
Attached file Patch v1 —
Attachment #272788 - Flags: ui-review?(christian.jansen)
Attachment #272788 - Flags: review?(daniel.boelzle)
Comment on attachment 272788 [details]
Patch v1

Looks good for me. Thanks for the work :-)
Attachment #272788 - Flags: ui-review?(christian.jansen) → ui-review+
ui-review=Chris
Attachment #272788 - Flags: review?(daniel.boelzle) → review+
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
This patch is either incomplete or faulty because it wrecks the icon only mode.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached image icon only mode —
Screenshot for the icon only mode. Without the patch the icon size is the same on mail and calendar toolbar. With the patch the icons on calendar toolbar are to wide.
Simon, can you point me to the location where Firefox and Thunderbird set the minimum-width for their toolbar icons? 

On a quick search I only found <http://lxr.mozilla.org/mozilla1.8/source/mail/themes/qute/mail/messenger.css#101> and <http://lxr.mozilla.org/mozilla1.8/source/browser/themes/winstripe/browser/browser.css#261>. But this is a different width. 

It also seems that there is nothing similar for the pinstripe theme.
I wouldn't call this wrecking the icon-only mode, but I agree that the current solution is not optimal. We should probably introduce a 

  toolbar[mode="full"] .cal-toolbarbutton-1 {

statement, to which we assign the min-width: 50px
Feel free to supply a patch on this. I'll probably not get to this before the weekend.
This image shows the main Thunderbird toolbar on Windows. It is measurable that the min. width is 55px. This matches the link in Comment #11.

-> For Lightning (winstripe theme) the min. width should be 55px (not 50px) but only for "full" mode.

As also said in Comment #11 I did not saw a similar setting in the pinstripe theme. Could someone provide a similar screenshot for the MacOS X build of Thunderbird or could point to the source?
The patch in bug 388016 will fix this bug.
Depends on: 388016
Fixed by the checkin for bug 388016.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
I accidentally added a "min-width: 0" statement to the section for the small calendar mode toolbar. I've reverted that change. Sorry for messing things up!
(In reply to comment #17)

The rule for small toolbar buttons had "min-width: 0px;" set before you changed it to "min-width: 50px;". (See you patch in this bug) In my opinion the "min-width: 0px;" should be added back as also commented in Bug 388016 Comment #30.
I don't think, that the rule should be added back. The reason is, that this would create an inconsistency between Thunderbird and Lightning.

Just try to switch between large and small icon+text mode in the mail toolbar and then in the calendar toolbar with and without the "min-width: 0px". 

In the mail toolbar the icons just vary their height. The calendar toolbar without the "min-width: 0px" is doing the same, without the "min-width: 0px" the icons get crammed together and move to the right. 

I don't think that we should have such inconsistencies in our UI if we can avoid them.

Verified in latest nightly build 20080108 -> task is fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: