Sfoglia il codice sorgente

New Docs: Fixed examples layout breakage.

Mr.doob 4 mesi fa
parent
commit
a02ba14525
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      files/main.css
  2. 2 2
      utils/docs/template/static/index.html

+ 1 - 1
files/main.css

@@ -448,7 +448,7 @@ iframe#viewer {
 }
 }
 
 
 #viewer {
 #viewer {
-	padding-left: 0;
+	padding-left: var(--panel-width);
 }
 }
 
 
 #button {
 #button {

+ 2 - 2
utils/docs/template/static/index.html

@@ -40,7 +40,7 @@
 
 
 		</div>
 		</div>
 
 
-		<iframe id="viewer" name="viewer"></iframe>
+		<iframe name="viewer"></iframe>
 
 
 		<script>
 		<script>
 
 
@@ -93,7 +93,7 @@
 		const clearSearchButton = document.getElementById( 'clearSearchButton' );
 		const clearSearchButton = document.getElementById( 'clearSearchButton' );
 		const panelScrim = document.getElementById( 'panelScrim' );
 		const panelScrim = document.getElementById( 'panelScrim' );
 		const filterInput = document.getElementById( 'filterInput' );
 		const filterInput = document.getElementById( 'filterInput' );
-		let iframe = document.getElementById( 'viewer' );
+		let iframe = document.getElementsByName( 'viewer' )[ 0 ];
 
 
 		const pageLinks = {};
 		const pageLinks = {};
 		let navigation;
 		let navigation;

粤ICP备19079148号