This can be seen in at: #overlay=admin/structure/types/manage/page
The auto_nodetitle module adds a token menu to the vertical tabs area.
The theme that reproduces this problem is Seven.
The expandable token groups, such as 'Current page' or 'Current user', fall outside of the table.
The problem seems to be that there is an inline css that has: style='margin-left: -19px; padding-left: 19px;'
Getting this to look correct requires deleting the margin-left: -19px entirely from jquery.treeTable.js file on line 221 inside the initialize function.
My original idea was to just write an exception case CSS, but because this javascript injects inline-css it cannot be overridden.
Issue fork token-961130
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
hass commentedPatch attached. It fixes the wrong table allignment and moves the image inside the table.
Comment #2
dave reidNeeds screenshots on Bartik, Garland, and Seven themes in D7.
Comment #3
thekevinday commentedComment #4
hass commented@thekevinday: I guess he mean with the patch applied :-)
I can confirm seven works well with the patch
Comment #5
thekevinday commentedWell, try these then.
Comment #6
dave reidSorry, I should have included screenshots should include a leaf expanded ... last time we tried this simple fix it looked like crap.
Comment #7
hass commentedFor me this looks good in seven.
Comment #8
dave reidNot really. The [user:created:custom:?] token should be indented past [user:created:custom] since it's the next level.
Comment #9
hass commentedThe structure Looks completly the same without the patch. There is no [user:created:custom]. I'm confused...
Comment #10
hass commentedI have also tested the patch on D6 with latest tokens DEV and it works as it should with the patch applied. UI looks good with patch, but had the same issues like D7 without the patch. Tested with my YAML theme. The patch above applies also to D6-DEV with an offset.
Comment #11
cleaver commentedI've got a patch that addresses the problem by adding a class on the first column and adding some padding. On it's own, the negative margin in the tree-table makes sense, so I found it better to address with the table.
Comment #12
cleaver commentedHere's what it should look like after (Chrome / OSX):
Comment #14
cleaver commented#11: token_indent-961130-11.patch queued for re-testing.
Comment #15
dave reidHrm, the most recent patch doesn't seem to fix the fact that the table itself is indented to the left, which is mostly what we're trying to fix as well.
Comment #16
NaX commentedYou should see this duplicate issue from tarekdj #1423022: margin problem with replacement patterns table
Including the below change in the above patch fixes it for me.
Comment #17
NaX commentedHere is a how I am doing it. It includes the patch from #11 and part of the patch from #1423022: margin problem with replacement patterns table
Comment #20
sylus commentedAttaching proper patch format against latest dev.
Comment #21
nileshlohar commentedWith patch in #20 we are unable to expand the token group in available Tokens table.
So, updated the patch.
Interdiff :
added back
$row['id'] = _token_clean_css_identifier($token);Comment #22
naveenvalechabut
$row['id'] = _token_clean_css_identifier($token);is not in the patch. Could you re-roll the patch?//Naveen
Comment #23
nileshlohar commented@naveenvalecha: It's already there.
$row['id'] = _token_clean_css_identifier($token);Is already in the code at line 201 and was removed in patch #20So, I removed that exclusion in #21
Hope it clears the confusion.
Comment #24
chris matthews commentedThe 2 year old patch in #21 to token.css applied cleanly to the latest token 7.x-1.x-dev and if still applicable needs to be reviewed.
Comment #26
mortona2k commentedThis issue persists in the current version.
Without patch:

Notice the marker is up against the edge and the outline overflows the container.
With patch:

This issue is causing this to happen in my custom theme:

Comment #28
mortona2k commentedCustom theme with patch:
