Explorar el Código

apply new style to joystick in joystick.vue

PythonPan hace 9 meses
padre
commit
1e6086b5db
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  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>