From 26b1ec246d4bf4f75f15bec0f2669ee1a12b1385 Mon Sep 17 00:00:00 2001
From: Spythere
Date: Mon, 3 Jun 2024 18:10:45 +0200
Subject: [PATCH] chore: added extra data to vehicles tooltip
---
src/components/Global/StockList.vue | 6 +--
.../Tooltip/VehiclePreviewTooltip.vue | 42 +++++++++++++++++--
2 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/src/components/Global/StockList.vue b/src/components/Global/StockList.vue
index f4ec337..425e2b3 100644
--- a/src/components/Global/StockList.vue
+++ b/src/components/Global/StockList.vue
@@ -23,15 +23,15 @@
-
- {{ stockName.split(':')[0].split('_').splice(0, 2).join(' ') }}
- {{ stockName.split(':')[1] }}
+ {{ stockName.split(':')[0].split('_').splice(0, 3).join(' ') }}
+
({{ stockName.split(':')[1] }})
- {{ tooltipStore.content.replace(/_/g, ' ') }}
+ {{ vehicleName.replace(/_/g, ' ') }}
+ ({{ vehicleCargo.id }})
+
+
+
+ {{ vehicleProps.speed }}km/h • {{ vehicleProps.length }}m •
+ {{ (vehicleProps.weight / 1000).toFixed(1) }}t
+ (+{{ (vehicleCargo.weight / 1000).toFixed(1) }}t)
@@ -27,11 +34,13 @@
@@ -85,10 +118,13 @@ img {
.vehicle-name {
text-align: center;
margin-top: 0.5em;
- color: #ccc;
text-wrap: wrap;
}
+.vehicle-props {
+ color: #ccc;
+}
+
.error-placeholder {
height: 176px;
}