From 9218a83d41e6e130bf0cb828cb3a11b2026946aa Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Wed, 22 Sep 2021 07:58:17 -0500 Subject: [PATCH] fix caption/description on several buttons --- docs/index.html | 28 +++++++++++++++---- ...sib_Buttons_CopyPublicZettelkastenLink.tid | 4 ++- ...sib_Buttons_CopyPublicZettelkastenLink.tid | 14 ++++++++-- .../$__sib_Buttons_CopyTitleReference.tid | 16 ++++++++--- 4 files changed, 48 insertions(+), 14 deletions(-) diff --git a/docs/index.html b/docs/index.html index 6d937e3..b375b3c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1211,7 +1211,7 @@ github: https://github.com/sobjornstad/zettelkasten-sib
hide
-
+
hide
@@ -16043,22 +16043,38 @@ Info: CoreVersion parameter is needed for TiddlyWiki only! } }
-
+
\whitespace trim
 \define copier()
   https://zettelkasten.sorenbjornstad.com/#$(tidTitle)$
 \end
 
 <$set name="tidTitle" value={{!!title}}>
-<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
+<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}} class=<<tv-config-toolbar-class>>>
+	<$list filter="[<tv-config-toolbar-icons>match[yes]]">
   {{$:/core/images/permalink-button}}
+	</$list>
+	<$list filter="[<tv-config-toolbar-text>match[yes]]">
+	<span class="tc-btn-text">
+	<$text text=" "/>
+	<$text text={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}}/>
+	</span>
+	</$list>
 </$button>
 </$set>
-
+
\whitespace trim
-<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
-	<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
+<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{$:/sib/Buttons/CopyTitleReference!!caption}} class=<<tv-config-toolbar-class>>>
+	<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+		<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
+	</$list>
+	<$list filter="[<tv-config-toolbar-text>match[yes]]">
+	<span class="tc-btn-text">
+	<$text text=" "/>
+	<$text text={{$:/sib/Buttons/CopyTitleReference!!caption}}/>
+	</span>
+	</$list>
 </$button>
diff --git a/tzk/editions/tzk/tiddlers/$__config_ViewToolbarButtons_Visibility_$__sib_Buttons_CopyPublicZettelkastenLink.tid b/tzk/editions/tzk/tiddlers/$__config_ViewToolbarButtons_Visibility_$__sib_Buttons_CopyPublicZettelkastenLink.tid index a480a1b..4b81512 100644 --- a/tzk/editions/tzk/tiddlers/$__config_ViewToolbarButtons_Visibility_$__sib_Buttons_CopyPublicZettelkastenLink.tid +++ b/tzk/editions/tzk/tiddlers/$__config_ViewToolbarButtons_Visibility_$__sib_Buttons_CopyPublicZettelkastenLink.tid @@ -1,5 +1,7 @@ created: 20210525001044166 -modified: 20210525000849030 +creator: soren +modified: 20210922125743198 +modifier: soren title: $:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyPublicZettelkastenLink type: text/vnd.tiddlywiki diff --git a/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyPublicZettelkastenLink.tid b/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyPublicZettelkastenLink.tid index bba1c47..f7a24cc 100644 --- a/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyPublicZettelkastenLink.tid +++ b/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyPublicZettelkastenLink.tid @@ -1,9 +1,9 @@ -caption: Copy public Zettelkasten link +caption: copy public link created: 20201120172611922 creator: soren description: Copy a link to this tiddler in the public Zettelkasten list-after: $:/core/ui/Buttons/info -modified: 20210825162715432 +modified: 20210922125543768 modifier: soren tags: $:/tags/ViewToolbar title: $:/sib/Buttons/CopyPublicZettelkastenLink @@ -15,7 +15,15 @@ type: text/vnd.tiddlywiki \end <$set name="tidTitle" value={{!!title}}> -<$button message="tm-copy-to-clipboard" param=<> tooltip={{!!caption}} class=<>> +<$button message="tm-copy-to-clipboard" param=<> tooltip={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}} class=<>> + <$list filter="[match[yes]]"> {{$:/core/images/permalink-button}} + + <$list filter="[match[yes]]"> + + <$text text=" "/> + <$text text={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}}/> + + \ No newline at end of file diff --git a/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyTitleReference.tid b/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyTitleReference.tid index a7da9ae..80691d2 100644 --- a/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyTitleReference.tid +++ b/tzk/editions/tzk/tiddlers/$__sib_Buttons_CopyTitleReference.tid @@ -1,15 +1,23 @@ -caption: Copy tiddler title +caption: copy tiddler title created: 20200419143537510 creator: soren description: Copy the name of this tiddler to the clipboard list-after: $:/core/ui/Buttons/info -modified: 20210825162721583 +modified: 20210922125723154 modifier: soren tags: $:/tags/ViewToolbar title: $:/sib/Buttons/CopyTitleReference type: text/vnd.tiddlywiki \whitespace trim -<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{!!caption}} class=<>> - +<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{$:/sib/Buttons/CopyTitleReference!!caption}} class=<>> + <$list filter="[match[yes]]"> + + + <$list filter="[match[yes]]"> + + <$text text=" "/> + <$text text={{$:/sib/Buttons/CopyTitleReference!!caption}}/> + + \ No newline at end of file