diff --git a/package.json b/package.json index 29c29ba3..be255e96 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,13 @@ "vue-tsc": "^2.2.10" }, "browserslist": [ - "> 1%", - "last 2 versions", + "last 5 Chrome versions", + "last 5 Firefox versions", + "last 5 Safari versions", + "last 5 Edge versions", + "last 5 ChromeAndroid versions", + "last 5 iOS versions", + "not IE <= 11", "not dead" ] } diff --git a/postcss.config.js b/postcss.config.js index 1740fc77..7d77c30e 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,8 @@ module.exports = { - plugins: { - 'postcss-preset-env': {}, - }, + plugins: { + 'autoprefixer': { + logical: false + }, + 'postcss-preset-env': {}, + }, }; diff --git a/src/DesktopApp.vue b/src/DesktopApp.vue index 7429d9b3..d421e258 100644 --- a/src/DesktopApp.vue +++ b/src/DesktopApp.vue @@ -7,7 +7,7 @@ {{ tt('Click to close') }}
- {{ tt('global.app.title') }} + {{ tt('global.app.title') }}
{{ currentNotificationContent }} diff --git a/src/components/common/PinCodeInput.vue b/src/components/common/PinCodeInput.vue index 0ba7842a..8b1c6ab5 100644 --- a/src/components/common/PinCodeInput.vue +++ b/src/components/common/PinCodeInput.vue @@ -307,8 +307,8 @@ init(props.length, props.modelValue); .pin-code-input input { text-align: center; - padding-left: 10px; - padding-right: 10px; + padding-inline-start: 10px; + padding-inline-end: 10px; width: 100%; height: var(--ebk-pin-code-input-height) !important; } diff --git a/src/components/desktop/AccountBalanceTrendsChart.vue b/src/components/desktop/AccountBalanceTrendsChart.vue index 1de582f0..50d2d09d 100644 --- a/src/components/desktop/AccountBalanceTrendsChart.vue +++ b/src/components/desktop/AccountBalanceTrendsChart.vue @@ -13,6 +13,7 @@ import { type CommonAccountBalanceTrendsChartProps, useAccountBalanceTrendsChart import { useUserStore } from '@/stores/user.ts'; import type { NameValue } from '@/core/base.ts'; +import { TextDirection } from '@/core/text.ts'; import type { ColorValue } from '@/core/color.ts'; import { ThemeType } from '@/core/theme.ts'; import { AccountBalanceTrendChartType } from '@/core/statistics.ts'; @@ -47,11 +48,12 @@ interface AccountBalanceTrendsChartDataItem { const props = defineProps(); const theme = useTheme(); -const { tt, formatAmountToLocalizedNumeralsWithCurrency } = useI18n(); +const { tt, getCurrentLanguageTextDirection, formatAmountToLocalizedNumeralsWithCurrency } = useI18n(); const { allDataItems, allDisplayDateRanges } = useAccountBalanceTrendsChartBase(props); const userStore = useUserStore(); +const textDirection = computed(() => getCurrentLanguageTextDirection()); const isDarkMode = computed(() => theme.global.name.value === ThemeType.Dark); const allSeries = computed(() => { @@ -203,7 +205,7 @@ const chartOptions = computed(() => { for (let i = 0; i < displayItems.length; i++) { tooltip += `
` - + `${displayItems[i].name}${displayItems[i].value}
` + + `${displayItems[i].name}${displayItems[i].value}
` + `
`; } @@ -214,7 +216,7 @@ const chartOptions = computed(() => { return `${params[0].name}
` + '
' - + `${props.legendName}${value}
` + + `${props.legendName}${value}
` + '
'; } } @@ -226,7 +228,8 @@ const chartOptions = computed(() => { xAxis: [ { type: 'category', - data: allDisplayDateRanges.value + data: allDisplayDateRanges.value, + inverse: textDirection.value === TextDirection.RTL } ], yAxis: [ diff --git a/src/components/desktop/AmountInput.vue b/src/components/desktop/AmountInput.vue index 5c6a4cc1..ebd22d89 100644 --- a/src/components/desktop/AmountInput.vue +++ b/src/components/desktop/AmountInput.vue @@ -13,7 +13,7 @@
{{ appendText }}
@@ -34,14 +34,14 @@
{{ appendText }}
@@ -379,6 +379,6 @@ watch(currentValue, (newValue) => { } .text-field-with-colored-label.has-pretend-text .v-field__input { - padding-left: 0.5rem; + padding-inline-start: 0.5rem; } diff --git a/src/components/desktop/ColorSelect.vue b/src/components/desktop/ColorSelect.vue index 9c1134c9..8588ba46 100644 --- a/src/components/desktop/ColorSelect.vue +++ b/src/components/desktop/ColorSelect.vue @@ -16,7 +16,7 @@ @@ -269,7 +269,8 @@ init(); } .tag-categories .v-expansion-panel-text__wrapper { - padding: 0 0 0 20px; + padding: 0 0 0 0; + padding-inline-start: 20px; } .tag-categories .v-expansion-panel--active:not(:first-child), diff --git a/src/views/desktop/exchangerates/ListPage.vue b/src/views/desktop/exchangerates/ListPage.vue index 7750bc03..b45cd277 100644 --- a/src/views/desktop/exchangerates/ListPage.vue +++ b/src/views/desktop/exchangerates/ListPage.vue @@ -39,9 +39,9 @@ v-if="exchangeRatesData && exchangeRatesData.exchangeRates && exchangeRatesData.exchangeRates.length"> -
- {{ exchangeRate.currencyDisplayName }} - {{ exchangeRate.currencyCode }} +
+ {{ exchangeRate.currencyDisplayName }} + {{ exchangeRate.currencyCode }}
@@ -61,16 +61,16 @@