refactor: uniform line height in web components

This commit is contained in:
Zack Spear
2023-08-01 15:56:46 -07:00
parent 9390ded8b6
commit 06d6fe357a
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ const { authAction, stateData } = storeToRefs(serverStore);
<template>
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
<span v-if="stateData.error" class="text-unraid-red font-semibold leading-8">
<span v-if="stateData.error" class="text-unraid-red font-semibold">
<h3 class="text-16px mb-8px">{{ t(stateData.heading) }}</h3>
<span class="text-14px" v-html="t(stateData.message)" />
</span>

View File

@@ -17,7 +17,7 @@ const downloadUrl = computed(() => new URL(`/graphql/api/logs?apiKey=${apiKey.va
<template>
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
<span class="leading-8">
<span>
{{ t('The primary method of support for Unraid Connect is through our forums and Discord.') }}
{{ t('If you are asked to supply logs, please open a support request on our Contact Page and reply to the email message you receive with your logs attached.') }}
{{ t('The logs may contain sensitive information so do not post them publicly.') }}

View File

@@ -3,15 +3,15 @@ import { provide } from 'vue';
import { createI18n, I18nInjectionKey } from 'vue-i18n';
import en_US from '~/locales/en_US.json'; // eslint-disable-line camelcase
import ja from '~/locales/ja.json';
// import ja from '~/locales/ja.json';
const defaultLocale = 'ja'; // ja, en_US
const defaultLocale = 'en_US'; // ja, en_US
const i18n = createI18n<false>({
legacy: false, // must set to `false`
locale: defaultLocale,
messages: {
en_US, // eslint-disable-line camelcase
ja,
// ja,
}
});