From 956ff8afd77603d88c30bceb5bf7517f8d2e7680 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Nov 2023 20:20:00 +0100 Subject: [PATCH 1/4] stock thumbnail labels fix --- src/components/utils/StockThumbnails.vue | 79 ++++++++++++------------ 1 file changed, 41 insertions(+), 38 deletions(-) diff --git a/src/components/utils/StockThumbnails.vue b/src/components/utils/StockThumbnails.vue index 11aa2a0..5062e7a 100644 --- a/src/components/utils/StockThumbnails.vue +++ b/src/components/utils/StockThumbnails.vue @@ -1,29 +1,28 @@ @@ -87,41 +86,45 @@ const allowDrop = (e: DragEvent) => { From 3dce5ec7c01d6b7c3ff0e0280cede3f145470618 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Nov 2023 21:08:01 +0100 Subject: [PATCH 2/4] responsive font size --- src/App.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index 34d9b0e..989fbc9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -35,5 +35,13 @@ export default defineComponent({ color: $textColor; font-size: 1em; padding: 1em 0.5em; + + @media screen and (max-width: $breakpointMd) { + font-size: calc(0.7rem + 0.75vw); + } + + @media screen and (orientation: landscape) and (max-width: $breakpointMd) { + font-size: calc(0.75rem + 0.4vw); + } } From c5d116e2dbb1c67bc19775ba38129e2f11159ffc Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Nov 2023 21:20:07 +0100 Subject: [PATCH 3/4] added alphabetical cargo sort --- src/components/tabs/StockGeneratorTab.vue | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/tabs/StockGeneratorTab.vue b/src/components/tabs/StockGeneratorTab.vue index d30da1f..a843b9b 100644 --- a/src/components/tabs/StockGeneratorTab.vue +++ b/src/components/tabs/StockGeneratorTab.vue @@ -37,13 +37,13 @@
@@ -129,6 +129,19 @@ export default defineComponent({ computedChosenCarTypes() { return new Set(this.chosenCarTypes.slice().sort((c1, c2) => (c1 > c2 ? 1 : -1))); }, + + computedCargoData() { + if (!this.store.stockData?.generator.cargo) return []; + + const cargoGeneratorData = this.store.stockData.generator.cargo; + + return Object.keys(cargoGeneratorData) + .sort((v1, v2) => this.$t(`cargo.${v1}`).localeCompare(this.$t(`cargo.${v2}`))) + .map((v) => ({ + name: v, + cargoList: cargoGeneratorData[v], + })); + }, }, methods: { From 05348486776a974826dee479bb098375763b83b0 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Nov 2023 21:20:22 +0100 Subject: [PATCH 4/4] bump: 1.7.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96982a5..1c59975 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pojazdownik", - "version": "1.7.1", + "version": "1.7.2", "private": true, "scripts": { "dev": "vite",