diff --git a/src/components/tabs/StockListTab.vue b/src/components/tabs/StockListTab.vue index cb1de4b..7b07b41 100644 --- a/src/components/tabs/StockListTab.vue +++ b/src/components/tabs/StockListTab.vue @@ -99,7 +99,8 @@ }}) - {{ $t('stocklist.length') }}: {{ store.totalLength }}m - - {{ $t('stocklist.vmax') }}: + - {{ $t('stocklist.vmax') }} + (?): {{ store.maxStockSpeed }} km/h diff --git a/src/locales/en.json b/src/locales/en.json index 19a9f55..760f915 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -47,6 +47,7 @@ }, "stocklist": { "title": "STOCK EDITOR", + "disclaimer": "Theorethical value based on vehicles maximum speed in the current composition. It may be inaccurate in relation to the correct operational speed in certain configurations.", "alert-copied": "The rolling stock has been copied to your clipboard!", "alert-empty": "Lista pojazdów jest pusta!", "prompt-file": "Name a file and download it to the Presets folder (Documents/TTSK/TrainDriver2):", diff --git a/src/locales/pl.json b/src/locales/pl.json index f18b0df..9a2ff76 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -47,6 +47,7 @@ }, "stocklist": { "title": "EDYTOR SKŁADU", + "disclaimer": "Wartość poglądowa wzorowana na prędkościach maksymalnych poszczególnych pojazdów w zestawieniu. Może nie zgadzać się z prawdziwymi prędkościami eksploatacyjnymi w konkretnych konfiguracjach.", "alert-copied": "Skład został skopiowany do twojego schowka!", "alert-empty": "Lista pojazdów jest pusta!", "prompt-file": "Nazwij plik, a następnie pobierz do folderu Presets (Dokumenty/TTSK/TrainDriver2):", diff --git a/src/styles/global.scss b/src/styles/global.scss index 4e42f56..b9f2d14 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -114,6 +114,23 @@ button { } } +[data-tooltip]:hover::after, +[data-tooltip]:focus::after { + position: absolute; + transform: translateX(10px); + + content: attr(data-tooltip); + color: white; + background: black; + padding: 0.5em; + max-width: 300px; + z-index: 100; +} + +[data-tooltip] { + cursor: pointer; +} + .btn { padding: 0.4em 0.75em; diff --git a/vite.config.ts b/vite.config.ts index 1c9c4bf..24b22c2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -40,7 +40,7 @@ export default defineConfig({ urlPattern: /^https:\/\/static.spythere.eu\/.*/i, handler: 'CacheFirst', options: { - cacheName: 'spythere-api-images-cache', + cacheName: 'spythere-api-cache', expiration: { maxEntries: 100, maxAgeSeconds: 60 * 60 * 24, // <== 1 day