Skip to content

Commit ef1825b

Browse files
committed
Fixed misaligned loading spinner in the card component when the card is loading embedded content.
1 parent 0008f3b commit ef1825b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- Remove small blank padding around tables in the table component
2121
- Fixed a bug in the table component where searching for "xy" would match a row with a cell that contains "x" followed by a cell that contains "y". This should match "x y" but not "xy".
2222
- Fixed a bug where embedded card contents would be initialized multiple times, potentially causing issues with some components (such as the chart component) when embedded in a card.
23+
- Fixed misaligned loading spinner in the card component when the card is loading embedded content.
2324

2425
## 0.30.1 (2024-10-31)
2526
- fix a bug where table sorting would break if table search was not also enabled.

sqlpage/templates/card.handlebars

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
>
5757
</iframe>
5858
{{~else~}}
59-
<div class="spinner-border card-loading-placeholder" role="status" style="width: 3rem; height: 3rem;">
60-
<span class="visually-hidden">Loading...</span>
59+
<div class="d-flex justify-content-center h-100 align-items-center card-loading-placeholder">
60+
<div class="spinner-border" role="status" style="width: 3rem; height: 3rem;">
61+
<span class="visually-hidden">Loading...</span>
62+
</div>
6163
</div>
6264
{{~/if~}}
6365
{{~/if~}}

0 commit comments

Comments
 (0)