Skip to content

Commit 633ebe3

Browse files
authored
Added "overflow" attribute to the "table" component
The "table" component template will now set the width property of the table component div to "fit-content" if the table defines a boolean "overflow" attribute set to TRUE.
1 parent f4c17af commit 633ebe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlpage/templates/table.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="card my-2 {{class}}" {{#if id}}id="{{id}}"{{/if}}>
1+
<div class="card my-2 {{class}}" {{#if overflow}}style="width: fit-content;"{{/if}} {{#if id}}id="{{id}}"{{/if}}>
22
<div class="card-body">
33
<div class="table-responsive" {{#if (or sort search)}}data-pre-init="table"{{/if}}>
44
{{#if search}}

0 commit comments

Comments
 (0)