Skip to content

Commit a02ba14

Browse files
committed
New Docs: Fixed examples layout breakage.
1 parent c861af1 commit a02ba14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

files/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ iframe#viewer {
448448
}
449449

450450
#viewer {
451-
padding-left: 0;
451+
padding-left: var(--panel-width);
452452
}
453453

454454
#button {

utils/docs/template/static/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
4040

4141
</div>
4242

43-
<iframe id="viewer" name="viewer"></iframe>
43+
<iframe name="viewer"></iframe>
4444

4545
<script>
4646

@@ -93,7 +93,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
9393
const clearSearchButton = document.getElementById( 'clearSearchButton' );
9494
const panelScrim = document.getElementById( 'panelScrim' );
9595
const filterInput = document.getElementById( 'filterInput' );
96-
let iframe = document.getElementById( 'viewer' );
96+
let iframe = document.getElementsByName( 'viewer' )[ 0 ];
9797

9898
const pageLinks = {};
9999
let navigation;

0 commit comments

Comments
 (0)