View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006248 | mantisbt | bugtracker | public | 2005-09-14 22:14 | 2006-02-04 05:54 |
| Reporter | dtgriscom | Assigned To | ryandesign | ||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.0.0rc2 | ||||
| Fixed in Version | 1.1.0a1 | ||||
| Summary | 0006248: 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. | ||||
| Tags | No tags attached. | ||||
| related to | 0005797 | closed | ryandesign | Minor request: Config option to not break menu item text across lines |
|
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 |
|