Skip to content

Commit 1a7eba2

Browse files
committed
Add dummy buttons for delete and edit
1 parent 657db41 commit 1a7eba2

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

tiddlers/$__supp-info_notes_content.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"HelloThere": [
33
"My very first note.\n\nLook ma, multiple lines!",
4-
"Another note, just to prove I can."
4+
"Another note, just to prove I can.",
5+
"Dummy text"
56
],
67
"Quick Start": [
78
"And a note on another tiddler, with a [[link|Hard and Soft Links]] just for demo."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
created: 20251107151758434
2-
modified: 20251107221914135
2+
modified: 20251109002622355
33
tags: $:/tags/SupplementaryInfo
44
title: $:/supp-info/notes/content
55
type: application/json

tiddlers/$__supp-info_notes_view-template.tid

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
created: 20251107152410791
2-
modified: 20251107221852106
2+
modified: 20251109002552778
33
tags: $:/tags/ViewTemplate
44
title: $:/supp-info/notes/view-template
55
type: text/vnd.tiddlywiki
@@ -26,11 +26,15 @@ type: text/vnd.tiddlywiki
2626
</span>
2727
</summary>
2828
<div class="note-list">
29-
<$list filter="[{$:/supp-info/notes/content}jsonindexes<currentTiddler>]" variable="index">
29+
<$list filter="[{$:/supp-info/notes/content}jsonindexes<currentTiddler>]" variable="index">
30+
<div class="note-row">
31+
<div class="button"><span class="icon">{{$:/core/images/delete-button}}</span></div>
32+
<div class="button"><span class="icon">{{$:/core/images/edit-button}}</span></div>
3033
<div class="note">
3134
<$wikify name="note" text={{{ [{$:/supp-info/notes/content}jsonget<currentTiddler>,<index>] }}} output="html"><<note>></$wikify>
3235
</div>
33-
</$list>
36+
</div>
37+
</$list>
3438
</div>
3539
</details>
3640

@@ -41,14 +45,25 @@ type: text/vnd.tiddlywiki
4145
.supp-notes {
4246
div.debug {background: red; color: white; font-weight: bold; font-size: 150%;}
4347
background-color: #ffc;
48+
margin-top: 3em;
4449
padding: 0;
4550
.controls {
4651
display: inline-block;
4752
margin-left: 1em;
4853
svg {width: 1em; height: 1em; vertical-align: middle;}
4954
}
5055
summary {background-color: #996; color: white; padding: .5em; font-weight: bold;}
51-
.note-list {padding: .5em;}
56+
.note-row {
57+
display: flex;
58+
flex-direction: row;
59+
align-items: center;
60+
padding: .5em;
61+
div.button {
62+
flex: 0 1 auto;
63+
width: 1.5em;
64+
svg {width: 1.5em; height: 1em; vertical-align: middle;} }
65+
div.note {flex: 1 0 auto;}
66+
}
5267
.note {border: 1px solid #ccc; padding: .25em .5em; margin-top: .5em; &>:first-child {margin-top: 0;}}
5368
}
5469
</style

0 commit comments

Comments
 (0)