From 73f6e7482f5a6501beba15a2a2e09b1ec2fbc550 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 15 May 2026 17:44:21 +0800 Subject: [PATCH] refactor: constrain dialog heights, standardize code formatting, and update CSS logical properties --- src/components/cards/PluginAppCard.vue | 2 +- src/components/cards/PluginCard.vue | 21 ++++++----- src/components/dialog/AboutDialog.vue | 50 +++++++++++++------------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/src/components/cards/PluginAppCard.vue b/src/components/cards/PluginAppCard.vue index 38819522..8c3282dc 100644 --- a/src/components/cards/PluginAppCard.vue +++ b/src/components/cards/PluginAppCard.vue @@ -273,7 +273,7 @@ const dropdownItems = ref([ - + diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index 40815f4c..cf2c092d 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -475,7 +475,10 @@ watch( {{ props.plugin?.plugin_desc }} -
+
- + @@ -587,13 +590,13 @@ watch( - + diff --git a/src/components/dialog/AboutDialog.vue b/src/components/dialog/AboutDialog.vue index 897591bb..2df3a26d 100644 --- a/src/components/dialog/AboutDialog.vue +++ b/src/components/dialog/AboutDialog.vue @@ -202,12 +202,7 @@ onMounted(() => {
{{ appVersion }} - + @@ -402,7 +397,7 @@ onMounted(() => {
- + @@ -430,8 +425,8 @@ onMounted(() => { .markdown-body :deep(h1), .markdown-body :deep(h2), .markdown-body :deep(h3) { - margin-block: 0.5rem; font-weight: 600; + margin-block: 0.5rem; } .markdown-body :deep(h1) { @@ -448,8 +443,8 @@ onMounted(() => { .markdown-body :deep(ul), .markdown-body :deep(ol) { - padding-inline-start: 1.5rem; margin-block: 0.5rem; + padding-inline-start: 1.5rem; } .markdown-body :deep(li) { @@ -470,18 +465,20 @@ onMounted(() => { } .markdown-body :deep(code) { - padding: 0.15rem 0.4rem; border-radius: 0.25rem; + background-color: rgba(127, 127, 127, 15%); font-size: 0.875em; - background-color: rgba(127, 127, 127, 0.15); + padding-block: 0.15rem; + padding-inline: 0.4rem; } .markdown-body :deep(pre) { - padding: 0.75rem 1rem; + border-radius: 0.375rem; + background-color: rgba(127, 127, 127, 15%); margin-block: 0.5rem; overflow-x: auto; - border-radius: 0.375rem; - background-color: rgba(127, 127, 127, 0.15); + padding-block: 0.75rem; + padding-inline: 1rem; } .markdown-body :deep(pre code) { @@ -490,37 +487,38 @@ onMounted(() => { } .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; - border-inline-start: 3px solid rgba(127, 127, 127, 0.4); - color: rgba(127, 127, 127, 0.8); + padding-inline-start: 1rem; } .markdown-body :deep(hr) { - margin-block: 1rem; 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) { - width: 100%; - margin-block: 0.5rem; border-collapse: collapse; + inline-size: 100%; + margin-block: 0.5rem; } .markdown-body :deep(th), .markdown-body :deep(td) { - padding: 0.4rem 0.75rem; - border: 1px solid rgba(127, 127, 127, 0.3); + border: 1px solid rgba(127, 127, 127, 30%); + padding-block: 0.4rem; + padding-inline: 0.75rem; } .markdown-body :deep(th) { + background-color: rgba(127, 127, 127, 10%); font-weight: 600; - background-color: rgba(127, 127, 127, 0.1); } .markdown-body :deep(img) { - max-width: 100%; - height: auto; + block-size: auto; + max-inline-size: 100%; }