fix(ui): handle missing version in simulator state
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / charging-stations / CSTable.vue
index cc826287e2384f7600d1494ca8a5e18f4917f950..fc1f6a5cbb02ee4f550ca85dd347f9e6ce3b1b19 100644 (file)
@@ -21,8 +21,9 @@
     <tbody id="cs-table__body">
       <CSData
         v-for="chargingStation in chargingStations"
-        :key="chargingStation.stationInfo?.hashId"
+        :key="chargingStation.stationInfo.hashId"
         :charging-station="chargingStation"
+        @need-refresh="$emit('need-refresh')"
       />
     </tbody>
   </table>
@@ -35,6 +36,8 @@ import type { ChargingStationData } from '@/types'
 defineProps<{
   chargingStations: ChargingStationData[]
 }>()
+
+const $emit = defineEmits(['need-refresh'])
 </script>
 
 <style>
@@ -57,7 +60,7 @@ defineProps<{
 }
 
 #cs-table__caption {
-  color: white;
+  color: ivory;
   background-color: black;
   font-size: 1.5rem;
   font-weight: bold;
@@ -71,6 +74,7 @@ defineProps<{
   flex-direction: row;
   justify-content: center;
   align-items: center;
+  border: solid 0.25px black;
 }
 
 .cs-table__row:nth-of-type(even) {
@@ -79,7 +83,9 @@ defineProps<{
 
 .cs-table__column {
   height: fit-content;
-  width: calc(65% / 10);
+  width: calc((100% - calc(100% / 3)) / 10);
+  display: flex;
+  flex-direction: column;
   text-align: center;
 }
 
@@ -89,6 +95,8 @@ defineProps<{
 
 .cs-table__connectors-column {
   height: fit-content;
-  width: 35%;
+  width: calc(100% / 3);
+  display: flex;
+  flex-direction: column;
 }
 </style>