浏览代码

Examples: Improved WebGPU error message.

Mr.doob 2 年之前
父节点
当前提交
f9035d8642
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/jsm/capabilities/WebGPU.js

+ 2 - 2
examples/jsm/capabilities/WebGPU.js

@@ -14,7 +14,7 @@ class WebGPU {
 
 	static getErrorMessage() {
 
-		const message = 'Your browser does not support <a href="https://gpuweb.github.io/gpuweb/" style="color:blue">WebGPU</a> yet.';
+		const message = 'Your browser does not support <a href="https://gpuweb.github.io/gpuweb/" style="color:blue">WebGPU</a> yet';
 
 		const element = document.createElement( 'div' );
 		element.id = 'webgpumessage';
@@ -25,7 +25,7 @@ class WebGPU {
 		element.style.background = '#fff';
 		element.style.color = '#000';
 		element.style.padding = '1.5em';
-		element.style.width = '400px';
+		element.style.maxWidth = '400px';
 		element.style.margin = '5em auto 0';
 
 		element.innerHTML = message;