Skip to content

Commit f749b4b

Browse files
Fixed wrapper issue for multiple table elements
fixes DES-203, closes #41
1 parent daf1203 commit f749b4b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

assets/built/source.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/source.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
/* Responsive HTML table */
5151
(function () {
5252
const tables = document.querySelectorAll('.gh-content > table:not(.gist table)');
53-
const wrapper = document.createElement('div');
54-
wrapper.className = 'gh-table';
55-
53+
5654
tables.forEach(function (table) {
55+
const wrapper = document.createElement('div');
56+
wrapper.className = 'gh-table';
5757
table.parentNode.insertBefore(wrapper, table);
5858
wrapper.appendChild(table);
5959
});

0 commit comments

Comments
 (0)