Skip to content

Commit

Permalink
fix: wrap table into div. This will help in overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitskvmdam committed Dec 29, 2022
1 parent e31b9eb commit c1ea0a0
Show file tree
Hide file tree
Showing 39 changed files with 93 additions and 99 deletions.
1 change: 0 additions & 1 deletion demo/src/Alive.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Alive {
* A constant.
* @readonly
* @deprecated This is no longer used
* @const {number}
*/
FOO = 1;

Expand Down
4 changes: 2 additions & 2 deletions output/v4/Alive.html

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions output/v4/Alive.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Database.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Energy.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Energy.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Environment.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Environment.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/HideConstructor.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Modules.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Statement.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/StatementIterator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Test.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/api.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/global.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-SqlJs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.Book.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-color_mixer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/pieOptions.html

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions output/v4/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,16 +520,9 @@ function initTooltip() {
}

function fixTable() {
var tables = document.querySelectorAll('table');
var table;
const tables = document.querySelectorAll('table');

// eslint-disable-next-line no-undef
if (window.innerWidth > 900) {
// Only fixing table if width is smaller than 900px
return;
}

for (table of tables) {
for (const table of tables) {
if (table.classList.contains('hljs-ln')) {
// don't want to wrap code blocks.
return;
Expand Down
2 changes: 1 addition & 1 deletion output/v4/scripts/core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 18 additions & 14 deletions output/v4/styles/clean-jsdoc-theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
font-display: swap;
}

:root {
--outer-wrapper-max-width: 65rem;
}

* {
box-sizing: border-box;
margin: 0;
Expand Down Expand Up @@ -309,14 +313,14 @@ td {
font-weight: bold;
}

.params td.description>p:first-child,
.props td.description>p:first-child {
.params td.description > p:first-child,
.props td.description > p:first-child {
margin-top: 0;
padding-top: 0;
}

.params td.description>p:last-child,
.props td.description>p:last-child {
.params td.description > p:last-child,
.props td.description > p:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
Expand Down Expand Up @@ -443,12 +447,12 @@ code {
text-decoration: none;
}

.with-arrow[data-isopen='false']+.sidebar-section-children-container {
.with-arrow[data-isopen='false'] + .sidebar-section-children-container {
height: 0;
overflow: hidden;
}

.with-arrow[data-isopen='true']+.sidebar-section-children-container {
.with-arrow[data-isopen='true'] + .sidebar-section-children-container {
height: auto;
}

Expand Down Expand Up @@ -528,7 +532,7 @@ code {
display: flex;
padding: 1rem 4rem 1rem 2rem;
flex: 1;
max-width: 60rem;
max-width: var(--outer-wrapper-max-width);
}

.navbar-left-items {
Expand Down Expand Up @@ -597,7 +601,7 @@ code {

.main-wrapper {
width: 100%;
max-width: 60rem;
max-width: var(--outer-wrapper-max-width);
padding: 0 4rem 1rem;
}

Expand All @@ -614,14 +618,14 @@ code {
justify-content: center;
}

.source-page+.footer {
.source-page + .footer {
margin-top: 3rem;
}

.footer .wrapper {
flex: 1;
padding: 1rem 2rem;
max-width: 70rem;
max-width: var(--outer-wrapper-max-width);
}

pre {
Expand Down Expand Up @@ -675,7 +679,7 @@ pre {
width: 1.875rem;
}

.code-copy-icon-container>div {
.code-copy-icon-container > div {
margin-top: 0.25rem;
position: relative;
}
Expand Down Expand Up @@ -871,7 +875,7 @@ pre {
}

.tag-default {
overflow: auto
overflow: auto;
}

/* scroll bar */
Expand Down Expand Up @@ -958,12 +962,12 @@ pre {
display: none;
}

.source-page+.footer,
.source-page + .footer,
.footer {
margin-top: 2rem;
}

.has-anchor:hover .link-anchor {
visibility: hidden;
}
}
}
2 changes: 1 addition & 1 deletion output/v4/styles/clean-jsdoc-theme.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Alive_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Apple_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Environment_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Other.html

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions static/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,16 +520,9 @@ function initTooltip() {
}

function fixTable() {
var tables = document.querySelectorAll('table');
var table;
const tables = document.querySelectorAll('table');

// eslint-disable-next-line no-undef
if (window.innerWidth > 900) {
// Only fixing table if width is smaller than 900px
return;
}

for (table of tables) {
for (const table of tables) {
if (table.classList.contains('hljs-ln')) {
// don't want to wrap code blocks.
return;
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 18 additions & 14 deletions static/styles/clean-jsdoc-theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
font-display: swap;
}

:root {
--outer-wrapper-max-width: 65rem;
}

* {
box-sizing: border-box;
margin: 0;
Expand Down Expand Up @@ -309,14 +313,14 @@ td {
font-weight: bold;
}

.params td.description>p:first-child,
.props td.description>p:first-child {
.params td.description > p:first-child,
.props td.description > p:first-child {
margin-top: 0;
padding-top: 0;
}

.params td.description>p:last-child,
.props td.description>p:last-child {
.params td.description > p:last-child,
.props td.description > p:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
Expand Down Expand Up @@ -443,12 +447,12 @@ code {
text-decoration: none;
}

.with-arrow[data-isopen='false']+.sidebar-section-children-container {
.with-arrow[data-isopen='false'] + .sidebar-section-children-container {
height: 0;
overflow: hidden;
}

.with-arrow[data-isopen='true']+.sidebar-section-children-container {
.with-arrow[data-isopen='true'] + .sidebar-section-children-container {
height: auto;
}

Expand Down Expand Up @@ -528,7 +532,7 @@ code {
display: flex;
padding: 1rem 4rem 1rem 2rem;
flex: 1;
max-width: 60rem;
max-width: var(--outer-wrapper-max-width);
}

.navbar-left-items {
Expand Down Expand Up @@ -597,7 +601,7 @@ code {

.main-wrapper {
width: 100%;
max-width: 60rem;
max-width: var(--outer-wrapper-max-width);
padding: 0 4rem 1rem;
}

Expand All @@ -614,14 +618,14 @@ code {
justify-content: center;
}

.source-page+.footer {
.source-page + .footer {
margin-top: 3rem;
}

.footer .wrapper {
flex: 1;
padding: 1rem 2rem;
max-width: 70rem;
max-width: var(--outer-wrapper-max-width);
}

pre {
Expand Down Expand Up @@ -675,7 +679,7 @@ pre {
width: 1.875rem;
}

.code-copy-icon-container>div {
.code-copy-icon-container > div {
margin-top: 0.25rem;
position: relative;
}
Expand Down Expand Up @@ -871,7 +875,7 @@ pre {
}

.tag-default {
overflow: auto
overflow: auto;
}

/* scroll bar */
Expand Down Expand Up @@ -958,12 +962,12 @@ pre {
display: none;
}

.source-page+.footer,
.source-page + .footer,
.footer {
margin-top: 2rem;
}

.has-anchor:hover .link-anchor {
visibility: hidden;
}
}
}
2 changes: 1 addition & 1 deletion static/styles/clean-jsdoc-theme.min.css

Large diffs are not rendered by default.

0 comments on commit c1ea0a0

Please sign in to comment.