From 4877891980f077c6c31e99cc6a9eb45b5d1230e1 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Fri, 23 Oct 2020 20:39:03 +0200 Subject: [PATCH] Fix tiddler title alignment if no icon is acitve (#4859) * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * don't show the span if no icons are active. * title lineheight 1.3 needed for eg: gggggg --- core/ui/ViewTemplate/title.tid | 2 ++ themes/tiddlywiki/vanilla/base.tid | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/ui/ViewTemplate/title.tid b/core/ui/ViewTemplate/title.tid index 6abacf18c..e2f874387 100644 --- a/core/ui/ViewTemplate/title.tid +++ b/core/ui/ViewTemplate/title.tid @@ -16,11 +16,13 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$ <$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}> <$link> <$set name="foregroundColor" value={{!!color}}> +<$list filter="[all[current]has[icon]]~[[$:/config/DefaultTiddlerIcon]has[text]]"> >> <$transclude tiddler={{!!icon}}> <$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/> + <$list filter="[all[current]removeprefix[$:/]]">

diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 0d1ebc360..51ea4d503 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -986,7 +986,7 @@ button.tc-btn-invisible.tc-remove-tag-button { .tc-titlebar { font-weight: 300; font-size: 2.35em; - line-height: 1.2em; + line-height: 1.3em; color: <>; margin: 0; }