@@ -3,7 +3,7 @@ import { watch, onMounted, ref, onBeforeUnmount, computed } from "vue";
33import { useMessage } from ' naive-ui'
44import { useI18n } from ' vue-i18n'
55import { useGlobalState } from ' ../store'
6- import { CloudDownloadRound , ArrowBackIosNewFilled , ArrowForwardIosFilled } from ' @vicons/material'
6+ import { CloudDownloadRound , ArrowBackIosNewFilled , ArrowForwardIosFilled , InboxRound } from ' @vicons/material'
77import { useIsMobile } from ' ../utils/composables'
88import { processItem } from ' ../utils/email-parser'
99import { utcToLocalDate } from ' ../utils' ;
@@ -147,6 +147,7 @@ const { t } = useI18n({
147147 attachments: ' Show Attachments' ,
148148 downloadMail: ' Download Mail' ,
149149 pleaseSelectMail: " Please select mail" ,
150+ emptyInbox: " Your inbox is empty" ,
150151 delete: ' Delete' ,
151152 deleteMailTip: ' Are you sure you want to delete mail?' ,
152153 reply: ' Reply' ,
@@ -171,6 +172,7 @@ const { t } = useI18n({
171172 downloadMail: ' 下载邮件' ,
172173 attachments: ' 查看附件' ,
173174 pleaseSelectMail: " 请选择邮件" ,
175+ emptyInbox: " 收件箱为空" ,
174176 delete: ' 删除' ,
175177 deleteMailTip: ' 确定要删除邮件吗?' ,
176178 reply: ' 回复' ,
@@ -446,7 +448,7 @@ onBeforeUnmount(() => {
446448 <n-split class =" left" direction =" horizontal" :max =" 0.75" :min =" 0.25" :default-size =" mailboxSplitSize"
447449 :on-update:size =" onSpiltSizeChange" >
448450 <template #1 >
449- <div style =" overflow : auto ; min-height : 50 vh ; max-height : 100vh ;" >
451+ <div style =" overflow : auto ; min-height : 60 vh ; max-height : 100vh ;" >
450452 <n-list hoverable clickable >
451453 <n-list-item v-for =" row in data" v-bind:key =" row.id" @click =" () => clickRow(row)"
452454 :class =" mailItemClass(row)" >
@@ -506,7 +508,10 @@ onBeforeUnmount(() => {
506508 :onDelete =" deleteMail" :onReply =" replyMail" :onForward =" forwardMail" :onSaveToS3 =" saveToS3Proxy" />
507509 </n-card >
508510 <n-card :bordered =" false" embedded class =" mail-item" v-else >
509- <n-result status =" info" :title =" t('pleaseSelectMail')" >
511+ <n-result status =" info" :title =" count === 0 ? t('emptyInbox') : t('pleaseSelectMail')" >
512+ <template #icon >
513+ <n-icon :component =" InboxRound" :size =" 100" />
514+ </template >
510515 </n-result >
511516 </n-card >
512517 </template >
@@ -531,7 +536,7 @@ onBeforeUnmount(() => {
531536 <n-input v-model:value =" localFilterKeyword"
532537 :placeholder =" t('keywordQueryTip')" size =" small" clearable />
533538 </div >
534- <div style =" overflow : auto ; height : 80 vh ;" >
539+ <div style =" overflow : auto ; min- height : 60 vh ; max-height : 100 vh ;" >
535540 <n-list hoverable clickable >
536541 <n-list-item v-for =" row in data" v-bind:key =" row.id" @click =" () => clickRow(row)" >
537542 <n-thing :title =" row.subject" >
0 commit comments