Skip to content

Commit 1e28a4e

Browse files
committed
fix(doc): ensure the documentation content doesn't overflow
Fix #444 (includes a fix in the indentation of the HTML code as well)
1 parent 848eec1 commit 1e28a4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/css/_documentation.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
.documentation-content
8080
position: absolute
8181
top: 0
82+
left: 0
83+
right: 0
8284
bottom: 0
8385
padding: 30px
8486
overflow-y: scroll

docs/js/doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
source += ' ';
8585
}
8686
source += line + '\n';
87-
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0) {
87+
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0 && line.indexOf('<input') === -1) {
8888
++indent;
8989
}
9090
});

0 commit comments

Comments
 (0)