Skip to content

Commit 16b4cb0

Browse files
authored
Merge pull request #422 from pchemguy/table-overflow
Added "overflow" attribute to the "table" component
2 parents fe7ccc6 + 4cc6089 commit 16b4cb0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
592592
('striped_columns', 'Whether to add zebra-striping to any table column.', 'BOOLEAN', TRUE, TRUE),
593593
('hover', 'Whether to enable a hover state on table rows.', 'BOOLEAN', TRUE, TRUE),
594594
('border', 'Whether to draw borders on all sides of the table and cells.', 'BOOLEAN', TRUE, TRUE),
595+
('overflow', 'Whether to to let "wide" tables overflow across the right border and enable browser-based horizontal scrolling.', 'BOOLEAN', TRUE, TRUE),
595596
('small', 'Whether to use compact table.', 'BOOLEAN', TRUE, TRUE),
596597
('description','Description of the table content and helps users with screen readers to find a table and understand what it’s.','TEXT',TRUE,TRUE),
597598
-- row level

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)