瀏覽代碼

examples: fix dark theme on empty location hash (#21932)

Co-authored-by: Felix Mariotto <[email protected]>
Felix Mariotto 4 年之前
父節點
當前提交
e4db023486
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      examples/index.html
  2. 1 0
      files/main.css

+ 2 - 0
examples/index.html

@@ -105,6 +105,7 @@
 
 					selectFile( file );
 					viewer.src = validRedirects.get( file );
+					viewer.style.display = 'unset';
 
 				}
 
@@ -221,6 +222,7 @@
 
 			window.location.hash = file;
 			viewer.focus();
+			viewer.style.display = 'unset';
 
 			panel.classList.remove( 'open' );
 

+ 1 - 0
files/main.css

@@ -383,6 +383,7 @@ iframe {
 	width: 100%;
 	height: 100%;
 	overflow: auto;
+	display: none;
 }
 
 #viewer {