Skip to content

Commit

Permalink
Merge pull request #422 from pchemguy/table-overflow
Browse files Browse the repository at this point in the history
Added "overflow" attribute to the "table" component
  • Loading branch information
lovasoa authored Jun 18, 2024
2 parents fe7ccc6 + 4cc6089 commit 16b4cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
('striped_columns', 'Whether to add zebra-striping to any table column.', 'BOOLEAN', TRUE, TRUE),
('hover', 'Whether to enable a hover state on table rows.', 'BOOLEAN', TRUE, TRUE),
('border', 'Whether to draw borders on all sides of the table and cells.', 'BOOLEAN', TRUE, TRUE),
('overflow', 'Whether to to let "wide" tables overflow across the right border and enable browser-based horizontal scrolling.', 'BOOLEAN', TRUE, TRUE),
('small', 'Whether to use compact table.', 'BOOLEAN', TRUE, TRUE),
('description','Description of the table content and helps users with screen readers to find a table and understand what it’s.','TEXT',TRUE,TRUE),
-- row level
Expand Down
2 changes: 1 addition & 1 deletion sqlpage/templates/table.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="card my-2 {{class}}" {{#if id}}id="{{id}}"{{/if}}>
<div class="card my-2 {{class}}" {{#if overflow}}style="width: fit-content;"{{/if}} {{#if id}}id="{{id}}"{{/if}}>
<div class="card-body">
<div class="table-responsive" {{#if (or sort search)}}data-pre-init="table"{{/if}}>
{{#if search}}
Expand Down

0 comments on commit 16b4cb0

Please sign in to comment.