Skip to content

Commit

Permalink
fix: Text i18n and sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Oct 28, 2023
1 parent 24b0d76 commit 321745c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions xmcl-keystone-ui/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ launchFailed:
title: Game Exited with Abnormal Code
launchStatus:
checkingProblems: Checking Problems
exit: Exit Game?
injectingAuthLib: Seting-up Thirdparty AuthLib
launching: Launching...
launchingSlow: Still launching... Starting graphic engine can be slow...
Expand Down
1 change: 1 addition & 0 deletions xmcl-keystone-ui/locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ launchNoVersionInstalled:
title: 无法找到安装的 Minecraft
launchStatus:
checkingProblems: 检测问题中
exit: 关闭游戏?
injectingAuthLib: 配置第三方验证中
launching: 启动中...
launchingSlow: 还在启动…Minecraft图形界面启动的会比较慢呢~
Expand Down
9 changes: 8 additions & 1 deletion xmcl-keystone-ui/src/views/AppGameExitDialog.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<v-dialog
v-model="data.isShown"
:width="750"
:persistent="true"
>
<v-card class="visible-scroll flex max-h-[80vh] flex-col overflow-auto">
Expand Down Expand Up @@ -58,6 +57,14 @@ const data = reactive({
crashReportLocation: '',
errorLog: '',
})
watch(() => data.isShown, (isShown) => {
if (!isShown) {
data.log = ''
data.isCrash = false
data.crashReportLocation = ''
data.errorLog = ''
}
})
const { t } = useI18n()
const { path } = injection(kInstance)
const { getLogContent, getCrashReportContent, showLog } = useService(InstanceLogServiceKey)
Expand Down
15 changes: 7 additions & 8 deletions xmcl-keystone-ui/src/views/HomeLaunchStatusDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
>
<v-card color="secondary">
<v-card-title v-if="exiting">
Exit game?
{{ t('launchStatus.exit') }}
</v-card-title>
<v-container
v-if="launching || !windowReady"
>
<v-container v-if="launching || !windowReady">
<v-layout
align-center
justify-center
column
>
<div
class="relative mt-8"
>
<div class="relative mt-8">
<v-progress-circular
color="primary"
:size="70"
Expand Down Expand Up @@ -108,7 +104,10 @@ watch(launching, (val) => {
}
})
const onKill = () => kill()
const onKill = () => {
kill()
hide()
}
const onCancel = () => hide()
watch(windowReady, (ready) => {
Expand Down
2 changes: 1 addition & 1 deletion xmcl-keystone-ui/src/views/ModItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-list-item
v-context-menu="getContextMenuItems"
v-shared-tooltip="[tooltip, hasUpdate ? 'primary' : 'black']"
class="pointer-events-auto"
class="pointer-events-auto max-h-[91px] min-h-[91px]"
:class="{
'v-list-item--disabled': item.disabled
}"
Expand Down

0 comments on commit 321745c

Please sign in to comment.