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

Command icon 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

hass’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.x-dev
Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new1.17 KB

Patch attached. It fixes the wrong table allignment and moves the image inside the table.

dave reid’s picture

Issue tags: +Needs screenshots

Needs screenshots on Bartik, Garland, and Seven themes in D7.

thekevinday’s picture

StatusFileSize
new44.57 KB
new30.82 KB
new26.83 KB
new46.51 KB
hass’s picture

@thekevinday: I guess he mean with the patch applied :-)

I can confirm seven works well with the patch

thekevinday’s picture

StatusFileSize
new41.97 KB
new30.88 KB
new26.91 KB
new46.54 KB

Well, try these then.

dave reid’s picture

Sorry, I should have included screenshots should include a leaf expanded ... last time we tried this simple fix it looked like crap.

hass’s picture

StatusFileSize
new56.31 KB

For me this looks good in seven.

dave reid’s picture

Status: Needs review » Needs work

Not really. The [user:created:custom:?] token should be indented past [user:created:custom] since it's the next level.

hass’s picture

The structure Looks completly the same without the patch. There is no [user:created:custom]. I'm confused...

hass’s picture

I 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.

cleaver’s picture

Status: Needs work » Needs review
StatusFileSize
new779 bytes

I'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.

cleaver’s picture

StatusFileSize
new211.9 KB

Here's what it should look like after (Chrome / OSX):

Status: Needs review » Needs work
Issue tags: -Needs screenshots

The last submitted patch, token_indent-961130-11.patch, failed testing.

cleaver’s picture

Status: Needs work » Needs review
Issue tags: +Needs screenshots

#11: token_indent-961130-11.patch queued for re-testing.

dave reid’s picture

Hrm, 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.

NaX’s picture

You 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.

 .token-tree {
   font-size: 0.85em;
-  margin-left: 19px;
 }
NaX’s picture

StatusFileSize
new794 bytes

Here 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

Status: Needs review » Needs work
Issue tags: -Needs screenshots

The last submitted patch, token-tree-ui-fix-961130.patch, failed testing.

sylus’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs screenshots
StatusFileSize
new944 bytes

Attaching proper patch format against latest dev.

nileshlohar’s picture

StatusFileSize
new938 bytes

With 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);

naveenvalecha’s picture

Status: Needs review » Needs work

but $row['id'] = _token_clean_css_identifier($token); is not in the patch. Could you re-roll the patch?

//Naveen

nileshlohar’s picture

Status: Needs work » Needs review

@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 #20
So, I removed that exclusion in #21

Hope it clears the confusion.

chris matthews’s picture

The 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.

mortona2k made their first commit to this issue’s fork.

mortona2k’s picture

This issue persists in the current version.

Without patch:
Drupal token module css without patch

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

With patch:
Drupal token module css with patch

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

mortona2k’s picture

Custom theme with patch:
Drupal token css patch applied custom theme