Hiding the extra space between the tiddler title and the tiddler text.

139 views
Skip to first unread message

David Gifford

unread,
Dec 17, 2016, 2:40:04 PM12/17/16
to TiddlyWiki
Okay, one of only two more questions to ask for the day...

I have this in my top menu

<$fieldmangler tiddler="$:/core/ui/ViewTemplate/title">
<$button message="tm-add-tag" class="tc-btn-invisible tc-tiddlylink" param="$:/tags/ViewTemplate">show</$button> <$button message="tm-remove-tag" class="tc-btn-invisible tc-tiddlylink" param="$:/tags/ViewTemplate">hide</$button></$fieldmangler>

The titles and toolbar disappear, but there is still some unwanted space still showing above the tiddler text. Probably some kind of extra space so that the title and text are spearated. How might I also remove that when clicking the mangler button?

PMario

unread,
Dec 17, 2016, 6:57:18 PM12/17/16
to TiddlyWiki
I'm not 100% sure, but I think you don't hide the tiddler subtitle, that contains the modified  date.
-m

David Gifford

unread,
Dec 17, 2016, 7:12:47 PM12/17/16
to TiddlyWiki
Hi Mario

I already have subtitles and tags hidden, so that is not it.

David Gifford

unread,
Dec 17, 2016, 7:46:31 PM12/17/16
to TiddlyWiki
I found the problem by inspecting the page elements.

I had tc-tiddler-frame margin-bottom at about 28px. Making it none solved the problem. Looks ugly while using tiddler titles, but great when toggling the tiddler titles. So I added 10px to tc-tiddler-title and it looks fine either way.

Dave

David Gifford

unread,
Dec 17, 2016, 10:37:42 PM12/17/16
to TiddlyWiki
Here is the file with the adjusted spacing. You have to create a few tiddlers with text and use the topmenu Hide button to hide the tiddler titles to see what I did. http://giffmex.org/experiments/notestorm2017.html

PMario

unread,
Dec 18, 2016, 6:42:29 AM12/18/16
to TiddlyWiki
On Sunday, December 18, 2016 at 4:37:42 AM UTC+1, David Gifford wrote:
Here is the file with the adjusted spacing. You have to create a few tiddlers with text and use the topmenu Hide button to hide the tiddler titles to see what I did. http://giffmex.org/experiments/notestorm2017.html

I see. That's an interesting approach.
-m

David Gifford

unread,
Dec 18, 2016, 12:13:15 PM12/18/16
to TiddlyWiki
Hi Mario

Here is an experimental comparison of a full TW using this approach, and a static html created with that TW, merely by clicking to hide the titles and exporting as static html.

TW: http://giffmex.org/experiments/sabbath.html
static: http://giffmex.org/experiments/sabbath.static.html

Dave

PMario

unread,
Dec 18, 2016, 2:26:22 PM12/18/16
to TiddlyWiki
On Sunday, December 18, 2016 at 6:13:15 PM UTC+1, David Gifford wrote:
Here is an experimental comparison of a full TW using this approach, and a static html created with that TW, merely by clicking to hide the titles and exporting as static html.

TW: http://giffmex.org/experiments/sabbath.html
static: http://giffmex.org/experiments/sabbath.static.html

Ah, now I see why you wanted it that way. Nice work!
-m
Reply all
Reply to author
Forward
0 new messages