Skip to content

Commit 60923b1

Browse files
committed
add font sizes and paragraph breaks to the text component
1 parent d89f9bc commit 60923b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqlpage/templates/text.handlebars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<p class="{{#if center}}mx-auto{{/if}}" style="max-width: {{default width 80}}ch" {{#if (not title)}}id="{{id}}"{{/if}}>
66
{{contents}}
77
{{~#each_row~}}
8+
{{~#if break~}}</p><p>{{~/if~}}
89
{{~#if link~}}
910
<a href="{{link}}">{{#delay}}</a>{{/delay}}
1011
{{~/if~}}
@@ -16,6 +17,7 @@
1617
{{~#if bold}}fw-bold {{/if~}}
1718
{{~#if italics}}fst-italic {{/if~}}
1819
{{~#if underline}}text-decoration-underline {{/if~}}
20+
{{~#if size}}fs-{{minus 7 size}} {{/if~}}
1921
">{{contents}}</span>
2022
{{~flush_delayed~}}
2123
{{~/each_row~}}

0 commit comments

Comments
 (0)