This seems like the kind of case where you should use the “Inspect” trick on your browser to see how the css is getting parsed, and where that css is coming from. It’s probably some padding-left and padding-right (which affects what the area is that gets underlined).
(It seems what you want is for extra padding (padding-left) to be applied to date, but somehow there’s a stylesheet or theme that is putting the padding only on the link itself, which results in the odd formatting on hover, as the underline crashes into the date to its right.)
When I try it on TiddlyWiki.com, I see the same “problem”. So maybe you need to re-render a tiddler?
The blank space in front comes because the link to the tiddler wraps around a button that controls open/close actions. You can see the same underlined space on a regular TOC, but you might not notice it because of the button.
However, there are two missing icons in your kit. Not having a button makes the gap in front more obvious. Do you mean for those buttons to be missing?
I haven’t figured out where the gap at the end of the link is coming from. I guess it’s some strange CSS that is extending the border of the link. Maybe someone with better CSS skills will be able to explain it.
These are spaces appearing in the links because of the “pretty formatting” of the wikitext in the macro tiddler.
Indenting html/wikitext/widgets/etc. makes it easier to read, but it can sometimes screw-up the intended rendering.
Well, that’s my guess, because I didn’t alter anything other than get rid of pretty indenting which I’m thinking introduced that annoying leading space.
I went “unindent” crazy and might not have noticed a trailing space (at the end of a line).
I’ve “unprettied” a good chunk of the content in there, and the leading space is now gone.
You are right. I’ll create a github issue. The fix should be straight forward. We should use the \whitespace trim pragma inside every macro definition. .. A bit more testing is needed.
Are you sure, you did CTRL reload the browser tab of the prerelease? … I did test it at the prerelease page and there are no extra spaces anymore. … Are you sure you don’t have a second tiddler with the “old” toc anywhere in your wiki?
AS you can see, there is no date. .. So it’s very likely, that you have overwritten the default macros and use a custom one. That’s why the changes from the prerelease don’t work.
You can open the AdvancedSearch → Filter tab and search for: \define toc-selective-expandable
It will show you all tiddlers, that define the macro. One of them shouldn’t be there.
I have additonal this macro tiddler: $:/_macros/alternative/toc
This macro was a copy of $:/macros/toc added the code to show my ‘published’ field.
The content was still the old code without the \whitespace trim option in…
I replaced it with code from prerelease and it works.
Thanks for your patient and your appreciated feedback.
Stefan