Просмотр исходного кода

apply new style to joystick in joystick.vue

PythonPan 9 месяцев назад
Родитель
Сommit
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>