Skip to content

Commit 7faadf3

Browse files
committed
Fixed a display bug where the table search box would disappear when scrolling horizontally in a large table.
1 parent 01d50f1 commit 7faadf3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Add support for simple text item in the columns component. This avoids having to deal with json functions to display a simple textual column item description.
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.
19+
- Fixed a display bug where the table search box would disappear when scrolling horizontally in a large table.
1920

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

sqlpage/templates/table.handlebars

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div class="card my-2 {{class}}" {{#if overflow}}style="width: fit-content;"{{/if}} {{#if id}}id="{{id}}"{{/if}}>
2-
<div class="card-body">
3-
<div class="table-responsive" {{#if (or sort (or search initial_search_value))}}data-pre-init="table"{{/if}}>
4-
{{#if (or search initial_search_value)}}
5-
<div class="p-2">
6-
<input type="search" class="form-control form-control-rounded fs-6 search" placeholder="Search…"
7-
value="{{initial_search_value}}"
8-
{{#if initial_search_value}}autocomplete="off"{{/if}}
9-
>
10-
</div>
11-
{{/if}}
2+
<div class="card-body" {{#if (or sort (or search initial_search_value))}}data-pre-init="table"{{/if}}>
3+
{{#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}}"
7+
{{#if initial_search_value}}autocomplete="off"{{/if}}
8+
>
9+
</div>
10+
{{/if}}
11+
<div class="table-responsive">
1212
<table class="table {{#if striped_rows}}table-striped {{/if}}{{#if
1313
striped_columns}}table-striped-columns {{/if}}{{#if
1414
hover}}table-hover {{/if}}{{#if border}}table-bordered {{/if}}

0 commit comments

Comments
 (0)