Skip to content

Commit 616ac2a

Browse files
committed
fix list component text truncation for empty descriptions
1 parent c00446c commit 616ac2a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
- the display of lists
1313
- Add an `active` top-level parameter to the shell component to highlight one of the top bar menu items. Thanks to @andrewsinnovations !
1414
- Make the [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP) customization more flexible, allowing you to harden the default security rules. Thanks to @guspower !
15+
- Fix vertically truncated text in the list component on empty descriptions.
16+
- ![screenshot](https://github.com/user-attachments/assets/df258e31-6698-4398-8ce5-4d7f396c03ef)
1517

1618
## v0.34 (2025-03-23)
1719

sqlpage/templates/list.handlebars

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
{{/if}}
2828
<div class="col {{#if ../wrap}}text-wrap{{else}}text-truncate{{/if}}">
2929
{{title}}
30-
<div class="d-block text-muted text-truncate mt-n1{{#if ../wrap}} text-wrap{{/if}}">
30+
{{~#if (or description description_md)~}}
31+
<div class="text-muted text-truncate{{#if ../compact}} mt-n1{{/if}}{{#if ../wrap}} text-wrap{{/if}}">
3132
{{~description~}}
3233
{{~#if description_md~}}
3334
<div style="margin-bottom: -1rem">{{{markdown description_md}}}</div>
3435
{{~/if~}}
3536
</div>
37+
{{~/if~}}
3638
</div>
3739

3840
{{#if link}}

0 commit comments

Comments
 (0)