View Issue Details

IDProjectCategoryView StatusLast Update
0006248mantisbtbugtrackerpublic2006-02-04 05:54
Reporterdtgriscom Assigned Toryandesign  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0rc2 
Fixed in Version1.1.0a1 
Summary0006248: In menu lists, embedded spaces should be non-breaking
Description

In the "|"-separated main menu, depending on the window width, commands with spaces (e.g. "My Account" or "Edit News" may be broken into two lines. This is very confusing; it looks like there are two commands: "My" and "Account". Same is true in the "[..]"-delimited Manage menu.

Suggestion: in code generating these menus, convert all spaces within each command to non-breaking spaces.

TagsNo tags attached.

Relationships

related to 0005797 closedryandesign Minor request: Config option to not break menu item text across lines 

Activities

ryandesign

ryandesign

2005-09-18 16:59

reporter   ~0011390

Non-breaking spaces are messy. CSS rule is cleaner.

I solved this for the pipe-delimeted main menu by adding the CSS rule "td.menu a { white-space: nowrap; }".

For the menus in the manage section, those are generated using the print_bracket_link() function, which I modified to wrap its output in a span of class "bracket-link" and added the CSS rule "span.bracket-link { white-space: nowrap; }". I had to also have it output a space after the closing span tag, else the adjacent spans wanted to remain on a single line. So now the links on the manage page have spaces between the links' brackets which they didn't before. I think it looks better this way, though, and it's consistent with the View Bug page, where the bracket links were already displayed in this way.

core/print_api.php -> 1.144
css/default.css -> 1.16