refactor(ui): cleanup actions panel
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 19:06:55 +0000 (20:06 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 19:06:55 +0000 (20:06 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/App.vue
ui/web/src/components/actions/AddChargingStations.vue
ui/web/src/components/actions/SetSupervisionUrl.vue
ui/web/src/components/actions/StartTransaction.vue
ui/web/src/views/ChargingStationsView.vue

index aee9c5d0ef3a2aca9cbc412da5e359668236eadd..471a240ab579d7dbb3908368e12440e22c6c8a67 100644 (file)
@@ -29,13 +29,13 @@ import Container from '@/components/Container.vue'
   justify-content: center;
   align-items: center;
   text-align: center;
-  margin: 0.1%;
-  padding: 0.1%;
+  margin: 0.4%;
+  padding: 0.4%;
   border: solid black;
 }
 
 body {
-  margin: 0.005%;
-  padding: 0.005%;
+  margin: 0.008%;
+  padding: 0.008%;
 }
 </style>
index 52d3fdb38fb155a00cfe2698ae091aaac4cda38a..8946e82a168f4ba9f7f28abc25627661d4531905 100644 (file)
@@ -1,6 +1,5 @@
 <template>
-  <h1 id="action">Action</h1>
-  <h2>Add Charging Stations</h2>
+  <h1 id="action">Add Charging Stations</h1>
   <p>Template:</p>
   <select v-model="state.template">
     <option disabled value="">Please select a template</option>
index 1406db53919cf4595e0dfcf9c0dacd3ccad9f748..2a419677c84b176716ff8722d37ca32a27602263 100644 (file)
@@ -1,7 +1,6 @@
 <template>
-  <h1 id="action">Action</h1>
-  <h2>Set Supervision Url</h2>
-  <h3>Charging Station {{ chargingStationId }}</h3>
+  <h1 id="action">Set Supervision Url</h1>
+  <h2>{{ chargingStationId }}</h2>
   <p>Supervision Url:</p>
   <input
     id="supervision-url"
index 99ef311809e59caa56f5153cb5616998664ba48a..f2a3242f518b6955bb092997c3e7e1fa5382dba2 100644 (file)
@@ -1,7 +1,7 @@
 <template>
-  <h1 id="action">Action</h1>
-  <h2>Start Transaction</h2>
-  <h3>Connector {{ connectorId }} on {{ chargingStationId }}</h3>
+  <h1 id="action">Start Transaction</h1>
+  <h2>{{ chargingStationId }}</h2>
+  <h3>Connector {{ connectorId }}</h3>
   <p>Scan RFID tag:</p>
   <input id="idtag" v-model.trim="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
   <br />
index 46f1c5d20d166ca5ac1038c709ad7169a1695650..f76e40e6aebaada6540231283cc77bad37896300 100644 (file)
@@ -356,8 +356,9 @@ const stopSimulator = (): void => {
 }
 
 #action {
+  min-width: max-content;
   color: ivory;
   background-color: black;
-  padding: 1%;
+  padding: 0.8%;
 }
 </style>