浏览代码

Some style updates.

oldj 3 年之前
父节点
当前提交
4e20f2707e

+ 1 - 0
src/common/i18n/languages/en.ts

@@ -5,6 +5,7 @@
 
 
 export default {
 export default {
   _app_name: 'SwitchHosts',
   _app_name: 'SwitchHosts',
+  _key: 'en',
   _name: 'English',
   _name: 'English',
   about: 'About',
   about: 'About',
   acknowledgement: 'Acknowledgement',
   acknowledgement: 'Acknowledgement',

+ 1 - 0
src/common/i18n/languages/fr.ts

@@ -5,6 +5,7 @@
 
 
 export default {
 export default {
   _app_name: 'SwitchHosts',
   _app_name: 'SwitchHosts',
+  _key: 'fr',
   _name: 'Français',
   _name: 'Français',
   about: 'À propos',
   about: 'À propos',
   acknowledgement: 'Remerciements',
   acknowledgement: 'Remerciements',

+ 1 - 0
src/common/i18n/languages/zh.ts

@@ -7,6 +7,7 @@ import { LanguageDict } from '@root/common/types'
 
 
 const lang: LanguageDict = {
 const lang: LanguageDict = {
   _app_name: 'SwitchHosts',
   _app_name: 'SwitchHosts',
+  _key: 'zh',
   _name: '中文',
   _name: '中文',
   about: '关于',
   about: '关于',
   acknowledgement: '特别致谢',
   acknowledgement: '特别致谢',

+ 4 - 2
src/renderer/components/Pref/General.tsx

@@ -88,7 +88,7 @@ const General = (props: IProps) => {
                 </Radio>
                 </Radio>
               </HStack>
               </HStack>
             </RadioGroup>
             </RadioGroup>
-            <FormHelperText>
+            <FormHelperText maxW={'350px'}>
               {data.write_mode === 'append' && lang.write_mode_append_help}
               {data.write_mode === 'append' && lang.write_mode_append_help}
               {data.write_mode === 'overwrite' &&
               {data.write_mode === 'overwrite' &&
                 lang.write_mode_overwrite_help}
                 lang.write_mode_overwrite_help}
@@ -120,7 +120,9 @@ const General = (props: IProps) => {
                 </Radio>
                 </Radio>
               </HStack>
               </HStack>
             </RadioGroup>
             </RadioGroup>
-            <FormHelperText>{lang.choice_mode_desc}</FormHelperText>
+            <FormHelperText maxW={'350px'}>
+              {lang.choice_mode_desc}
+            </FormHelperText>
           </VStack>
           </VStack>
         </HStack>
         </HStack>
       </FormControl>
       </FormControl>

+ 1 - 1
src/version.json

@@ -1 +1 @@
-[4, 0, 4, 6075]
+[4, 1, 0, 6076]