diff --git a/src/App.vue b/src/App.vue index e01a4ff..0229f5c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -67,16 +67,21 @@

settings

Distance Δ: {{ o.distance }}

Radius r: {{ o.radius }}

+

Rings ⬭: {{ o.rings > 0 ? o.rings : 'none' }}

Satellites: {{ listSatellites(o) }}

+ @@ -97,8 +102,8 @@ const star = reactive({ const starCX = computed(() => -1 * star.radius * steepCurve(star.radius, 50, 0.955)) const objects = ref([ - { type: 'planet', name: 'Mercury', radius: 1, distance: 100, satellites: [], rings: [] }, - { type: 'planet', name: 'Venus', radius: 4, distance: 120, satellites: [], rings: [] }, + { type: 'planet', name: 'Mercury', radius: 1, distance: 100, satellites: [], rings: 0 }, + { type: 'planet', name: 'Venus', radius: 4, distance: 120, satellites: [], rings: 0 }, { type: 'planet', name: 'Terra', radius: 4, distance: 140, satellites: [ { name: 'ISS', type: 'station' }, { name: 'Luna', radius: 2 }, @@ -132,7 +137,7 @@ const objects = ref([ ], rings: 2 }, { type: 'planet', name: 'Neptune', radius: 15, distance: 950, satellites: [ { name: 'Triton', radius: 1 }, - ], rings: [] }, + ], rings: 0 }, ]) const selectedObject = ref(null) diff --git a/src/app.css b/src/app.css index 5f501d8..8b48cf5 100644 --- a/src/app.css +++ b/src/app.css @@ -195,5 +195,9 @@ h1 { font-size: 1em; font-weight: bold; } +.object-settings > label > span { + width: 2em; +} .object-settings .planet-distance { width: 100%; } .object-settings .planet-radius { width: 100%; } +.object-settings .planet-rings { width: 3em; padding: .2em; }