Skip to content

Commit c94c13f

Browse files
committed
Remove small blank padding around tables in the table component
1 parent 7faadf3 commit c94c13f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Increase spacing between items in the columns component for improved readability.
1818
- Fixed invalid decoding of some less common data types in Microsoft SQL Server and MySQL.
1919
- Fixed a display bug where the table search box would disappear when scrolling horizontally in a large table.
20+
- Remove small blank padding around tables in the table component
2021

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

sqlpage/templates/table.handlebars

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<div class="card my-2 {{class}}" {{#if overflow}}style="width: fit-content;"{{/if}} {{#if id}}id="{{id}}"{{/if}}>
2-
<div class="card-body" {{#if (or sort (or search initial_search_value))}}data-pre-init="table"{{/if}}>
2+
<div class="card-body p-0" {{#if (or sort (or search initial_search_value))}}data-pre-init="table"{{/if}}>
33
{{#if (or search initial_search_value)}}
4-
<div class="p-2">
5-
<input type="search" class="form-control form-control-rounded fs-6 search" placeholder="Search…"
6-
value="{{initial_search_value}}"
4+
<div class="p-3">
5+
<input
6+
type="search"
7+
class="form-control form-control-rounded fs-6 search"
8+
placeholder="Search…"
9+
value="{{initial_search_value}}"
710
{{#if initial_search_value}}autocomplete="off"{{/if}}
8-
>
9-
</div>
11+
>
12+
</div>
1013
{{/if}}
1114
<div class="table-responsive">
1215
<table class="table {{#if striped_rows}}table-striped {{/if}}{{#if

0 commit comments

Comments
 (0)