Skip to content

Commit 19d9caf

Browse files
committed
fix link view field list spacing
1 parent 153ab60 commit 19d9caf

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

exampleVault/Input Fields/List.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ list:
77
list2:
88
- "[[Other/Example Notes/Example Note with Image.md|Example Note with Image]]"
99
- "[[Other/Example Notes/Example Note with Callouts.md|Example Note with Callouts]]"
10-
- something
1110
list3:
1211
- Example Note with Image
1312
- Example Note with Callouts
14-
- something
13+
- Example Note with Embeds
1514
list4:
1615
- Example Note with Callouts
1716
- Example Note with Embeds
@@ -26,13 +25,17 @@ INPUT[list(showcase):list]
2625
```
2726

2827
```meta-bind
29-
INPUT[listSuggester(optionQuery(#example-note), option(something, other), showcase):list2]
28+
INPUT[listSuggester(optionQuery(#example-note), showcase):list2]
3029
```
3130

31+
`VIEW[{list2}][link]`
32+
3233
```meta-bind
33-
INPUT[listSuggester(optionQuery(#example-note), option(something, other), useLinks(false), showcase):list3]
34+
INPUT[listSuggester(optionQuery(#example-note), useLinks(false), showcase):list3]
3435
```
3536

37+
`VIEW[{list3}][link]`
38+
3639
```meta-bind
3740
INPUT[inlineListSuggester(optionQuery(#example-note), option(something, other), useLinks(false), showcase):list4]
3841
```

src/utils/LinkListComponent.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<LinkComponent mdLink={mdLinkList[0]}></LinkComponent>
1212
{:else}
1313
{#each mdLinkList.slice(0, mdLinkList.length - 1) as link}
14-
<LinkComponent mdLink={link}></LinkComponent>,
14+
<LinkComponent mdLink={link}></LinkComponent><span>,</span>
15+
<span></span>
16+
<!-- some strange line breaks to get the comma seperated spacing to work -->
1517
{/each}
1618
<LinkComponent mdLink={mdLinkList[mdLinkList.length - 1]}></LinkComponent>
1719
{/if}

0 commit comments

Comments
 (0)