feat: modify default class (#93)

This commit is contained in:
Dream Hunter
2024-04-01 22:40:42 +08:00
committed by GitHub
parent 761cda0154
commit a8e17f3c83
+6 -2
View File
@@ -148,7 +148,7 @@ onMounted(async () => {
{{ t('refresh') }} {{ t('refresh') }}
</n-button> </n-button>
</div> </div>
<div style="overflow: scroll; max-height: 80vh;"> <div style="overflow: scroll; height: 80vh;">
<n-list hoverable clickable> <n-list hoverable clickable>
<n-list-item v-for="row in data" v-bind:key="row.id" @click="() => clickRow(row)" <n-list-item v-for="row in data" v-bind:key="row.id" @click="() => clickRow(row)"
:class="mailItemClass(row)"> :class="mailItemClass(row)">
@@ -188,7 +188,7 @@ onMounted(async () => {
</n-space> </n-space>
<div v-html="curMail.message" style="max-height: 100vh;"></div> <div v-html="curMail.message" style="max-height: 100vh;"></div>
</n-card> </n-card>
<n-card v-else> <n-card class="mail-item" v-else>
<n-result status="info" :title="t('pleaseSelectMail')"> <n-result status="info" :title="t('pleaseSelectMail')">
</n-result> </n-result>
</n-card> </n-card>
@@ -301,4 +301,8 @@ onMounted(async () => {
.overlay-light-backgroud { .overlay-light-backgroud {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
} }
.mail-item {
height: 100%;
}
</style> </style>