refactor: constrain dialog heights, standardize code formatting, and update CSS logical properties

This commit is contained in:
jxxghp
2026-05-15 17:44:21 +08:00
parent 81ab3f9da8
commit 73f6e7482f
3 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ const dropdownItems = ref([
<!-- 安装插件进度框 --> <!-- 安装插件进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" /> <ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
<!-- 更新日志 --> <!-- 更新日志 -->
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable> <VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" max-height="85vh" scrollable>
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })"> <VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
<VDialogCloseBtn @click="releaseDialog = false" /> <VDialogCloseBtn @click="releaseDialog = false" />
<VDivider /> <VDivider />
+5 -2
View File
@@ -475,7 +475,10 @@ watch(
{{ props.plugin?.plugin_desc }} {{ props.plugin?.plugin_desc }}
</div> </div>
</div> </div>
<div class="relative flex-shrink-0 self-center pb-3" :class="{ 'cursor-move': props.sortable && display.mdAndUp.value }"> <div
class="relative flex-shrink-0 self-center pb-3"
:class="{ 'cursor-move': props.sortable && display.mdAndUp.value }"
>
<VAvatar size="48"> <VAvatar size="48">
<VImg <VImg
ref="imageRef" ref="imageRef"
@@ -569,7 +572,7 @@ watch(
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" /> <ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
<!-- 更新日志 --> <!-- 更新日志 -->
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable :fullscreen="!display.mdAndUp.value"> <VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable max-height="85vh">
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })"> <VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
<VDialogCloseBtn @click="releaseDialog = false" /> <VDialogCloseBtn @click="releaseDialog = false" />
<VDivider /> <VDivider />
+24 -26
View File
@@ -202,12 +202,7 @@ onMounted(() => {
<dd class="flex text-sm sm:col-span-2 sm:mt-0"> <dd class="flex text-sm sm:col-span-2 sm:mt-0">
<span class="flex-grow flex flex-row items-center truncate"> <span class="flex-grow flex flex-row items-center truncate">
<code class="truncate">{{ appVersion }}</code> <code class="truncate">{{ appVersion }}</code>
<VBtn <VBtn size="x-small" variant="tonal" class="ms-2" @click="clearCache">
size="x-small"
variant="tonal"
class="ms-2"
@click="clearCache"
>
<template #prepend> <template #prepend>
<VIcon icon="mdi-refresh" size="14" /> <VIcon icon="mdi-refresh" size="14" />
</template> </template>
@@ -402,7 +397,7 @@ onMounted(() => {
</div> </div>
</VCardText> </VCardText>
</VCard> </VCard>
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable> <VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable max-height="85vh">
<VCard> <VCard>
<VCardItem> <VCardItem>
<VDialogCloseBtn @click="releaseDialog = false" /> <VDialogCloseBtn @click="releaseDialog = false" />
@@ -430,8 +425,8 @@ onMounted(() => {
.markdown-body :deep(h1), .markdown-body :deep(h1),
.markdown-body :deep(h2), .markdown-body :deep(h2),
.markdown-body :deep(h3) { .markdown-body :deep(h3) {
margin-block: 0.5rem;
font-weight: 600; font-weight: 600;
margin-block: 0.5rem;
} }
.markdown-body :deep(h1) { .markdown-body :deep(h1) {
@@ -448,8 +443,8 @@ onMounted(() => {
.markdown-body :deep(ul), .markdown-body :deep(ul),
.markdown-body :deep(ol) { .markdown-body :deep(ol) {
padding-inline-start: 1.5rem;
margin-block: 0.5rem; margin-block: 0.5rem;
padding-inline-start: 1.5rem;
} }
.markdown-body :deep(li) { .markdown-body :deep(li) {
@@ -470,18 +465,20 @@ onMounted(() => {
} }
.markdown-body :deep(code) { .markdown-body :deep(code) {
padding: 0.15rem 0.4rem;
border-radius: 0.25rem; border-radius: 0.25rem;
background-color: rgba(127, 127, 127, 15%);
font-size: 0.875em; font-size: 0.875em;
background-color: rgba(127, 127, 127, 0.15); padding-block: 0.15rem;
padding-inline: 0.4rem;
} }
.markdown-body :deep(pre) { .markdown-body :deep(pre) {
padding: 0.75rem 1rem; border-radius: 0.375rem;
background-color: rgba(127, 127, 127, 15%);
margin-block: 0.5rem; margin-block: 0.5rem;
overflow-x: auto; overflow-x: auto;
border-radius: 0.375rem; padding-block: 0.75rem;
background-color: rgba(127, 127, 127, 0.15); padding-inline: 1rem;
} }
.markdown-body :deep(pre code) { .markdown-body :deep(pre code) {
@@ -490,37 +487,38 @@ onMounted(() => {
} }
.markdown-body :deep(blockquote) { .markdown-body :deep(blockquote) {
padding-inline-start: 1rem; border-inline-start: 3px solid rgba(127, 127, 127, 40%);
color: rgba(127, 127, 127, 80%);
margin-block: 0.5rem; margin-block: 0.5rem;
border-inline-start: 3px solid rgba(127, 127, 127, 0.4); padding-inline-start: 1rem;
color: rgba(127, 127, 127, 0.8);
} }
.markdown-body :deep(hr) { .markdown-body :deep(hr) {
margin-block: 1rem;
border: none; border: none;
border-block-start: 1px solid rgba(127, 127, 127, 0.3); border-block-start: 1px solid rgba(127, 127, 127, 30%);
margin-block: 1rem;
} }
.markdown-body :deep(table) { .markdown-body :deep(table) {
width: 100%;
margin-block: 0.5rem;
border-collapse: collapse; border-collapse: collapse;
inline-size: 100%;
margin-block: 0.5rem;
} }
.markdown-body :deep(th), .markdown-body :deep(th),
.markdown-body :deep(td) { .markdown-body :deep(td) {
padding: 0.4rem 0.75rem; border: 1px solid rgba(127, 127, 127, 30%);
border: 1px solid rgba(127, 127, 127, 0.3); padding-block: 0.4rem;
padding-inline: 0.75rem;
} }
.markdown-body :deep(th) { .markdown-body :deep(th) {
background-color: rgba(127, 127, 127, 10%);
font-weight: 600; font-weight: 600;
background-color: rgba(127, 127, 127, 0.1);
} }
.markdown-body :deep(img) { .markdown-body :deep(img) {
max-width: 100%; block-size: auto;
height: auto; max-inline-size: 100%;
} }
</style> </style>