浏览代码

wip: edit some css

Jonathan Kelley 4 年之前
父节点
当前提交
63bbc38f3f
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 1
      examples/assets/calculator.css
  2. 2 2
      packages/webview/src/index.html

+ 2 - 1
examples/assets/calculator.css

@@ -8,6 +8,7 @@ html {
 body {
   margin: 0;
   font: 100 14px 'Roboto';
+  overflow: hidden;
 }
 
 button {
@@ -52,7 +53,7 @@ button:active {
 }
 
 #wrapper .calculator {
-  box-shadow: 0px 0px 20px 0px #aaa;
+  /* box-shadow: 0px 0px 20px 0px #aaa; */
 }
 
 .calculator-display {

+ 2 - 2
packages/webview/src/index.html

@@ -123,7 +123,7 @@
 
         async function initialize() {
             const reply = await rpc.call('initiate');
-            const interpreter = new Interpreter(window.document.getElementById("app").firstChild);
+            const interpreter = new Interpreter(window.document.getElementById("_dioxusroot").firstChild);
             console.log(reply);
 
             for (let x = 0; x < reply.length; x++) {
@@ -142,7 +142,7 @@
 
 
 <body>
-    <div id="app">
+    <div id="_dioxusroot">
         _
     </div>
 </body>