浏览代码

apply new style to joystick in joystick.vue

PythonPan 9 月之前
父节点
当前提交
1e6086b5db
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      nicegui/elements/joystick.vue

+ 3 - 4
nicegui/elements/joystick.vue

@@ -1,5 +1,5 @@
 <template>
-  <div><div></div></div>
+  <div class="nicegui-joystick"><div></div></div>
 </template>
 
 <script>
@@ -23,9 +23,8 @@ export default {
 
 <style scoped>
 :scope > div {
-  background-color: AliceBlue;
-  width: 10em;
-  height: 10em;
+  width: 100%;
+  height: 100%;
   position: relative;
 }
 </style>