Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Aug 2011 at 21:44 UTC
Updated:
1 Sep 2011 at 05:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidCan you maybe screenshot the problem?
Comment #2
tsvenson commentedSure, see enclosed. It contains both File type and Random open. On the Help page only two groups under random gets broken, but on for example the Pathauto Patters page, also those above. Guess that is due to less width.
Comment #3
dave reidOh strange. Not sure why I didn't notice this until now. Seems to be a problem since [file:type:*] tokens generate a CSS class of file-type-* and [file-type:*] tokens generate the same CSS class of file-type-*. This has to be fixed in the token tree UI.
Comment #4
dave reidCould you please test the following patch?
Comment #5
tsvenson commentedTested. It fixes the problem with the File type, but not the Random.
Reason the random breaks two word groups is due to that when it is expanded, the field names in contains are too short, which makes the Name column to narrow, causing two word group names to word wrap.
Comment #6
dave reidYeah I don't think that can actually be fixed. It's just a table cell width issue.
Comment #7
tsvenson commentedWould it be possible to use style="white-space: nowrap" for the td's in the Name column?
Changing status as the patch does what it says on the tin.
Comment #8
dave reidCommitted #5 to 7.x-1.x (does not apply to 6.x-1.x).
http://drupalcode.org/project/token.git/commit/05c6fc7
Back to discussing how to no-wrap the token column.
Comment #9
dave reidAlso committed a CSS addition of .token-tree td.token-key { white-space: nowrap; } to 7.x-1.x and 6.x-1.x.
http://drupalcode.org/project/token.git/commit/765aa53
http://drupalcode.org/project/token.git/commit/6e19460
Comment #10
tsvenson commentedDave, the last patch actually puts the nowrap on the token column, not the Name column. Problem is that the td's in the Name column doesn't have any classes.
Comment #11
dave reidI think that's fine actually - the names are text and can be wrapped - the tokens are not and should not be wrapped. The zebra-striping should help separate rows.
Comment #12
tsvenson commentedOki, your da boss. Btw, is the nowrap actually needed on the token when they don't contain any spaces, or is there a risk hyphens will trigger word wrap?
Comment #13
dave reidYes I've found that hypens do allow wrapping to happen which is why I went for the td.token-key for the CSS over token name.
Comment #14
tsvenson commentedOki, putting this one back to fixed then.
Comment #15.0
(not verified) commentedAdded part about it happens everywhere.