@@ -182,7 +182,7 @@
@@ -230,7 +230,7 @@
@@ -239,6 +239,7 @@
{{ analyticsSummaryText }}
+
轻触或滑动查看数据,使用下方按钮调整范围
@@ -309,7 +310,7 @@
@@ -631,12 +632,12 @@ const MetricProgress = defineComponent({
'div',
{
class:
- 'theme-2026-card-hover rounded-[30px] border border-[#d4e0e3] bg-[#f6faf9] p-4 shadow-md transition-all duration-200 hover:-translate-y-0.5 hover:border-[#8fb2bf] hover:shadow-lg hover:shadow-[#a9bdc2]/60 dark:border-[#40545c] dark:bg-[#17252c]/50 dark:hover:border-[#7199a8] dark:hover:bg-[#263941] dark:hover:shadow-black/25'
+ 'theme-2026-card-hover rounded-[18px] border border-[#d4e0e3] bg-[#f6faf9] p-2.5 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:border-[#8fb2bf] hover:shadow-md sm:rounded-[30px] sm:p-4 sm:shadow-md dark:border-[#40545c] dark:bg-[#17252c]/50 dark:hover:border-[#7199a8] dark:hover:bg-[#263941] dark:hover:shadow-black/25'
},
[
- h('div', { class: 'mb-2 flex items-center justify-between text-sm' }, [
- h('span', { class: 'text-gray-500 dark:text-gray-400' }, props.label),
- h('span', { class: 'font-medium text-gray-900 dark:text-white' }, `${props.value}%`)
+ h('div', { class: 'mb-2 flex flex-col gap-0.5 text-xs sm:flex-row sm:items-center sm:justify-between sm:text-sm' }, [
+ h('span', { class: 'line-clamp-1 text-gray-500 dark:text-gray-400' }, props.label),
+ h('span', { class: 'font-medium tabular-nums text-gray-900 dark:text-white' }, `${props.value}%`)
]),
h('div', { class: 'h-2 overflow-hidden rounded-full bg-gray-100 dark:bg-gray-700' }, [
h('div', {
@@ -644,7 +645,7 @@ const MetricProgress = defineComponent({
style: { width: `${props.value}%` }
})
]),
- h('p', { class: 'mt-2 text-sm text-gray-500 dark:text-gray-400' }, props.detail)
+ h('p', { class: 'mt-2 hidden text-sm text-gray-500 sm:block dark:text-gray-400' }, props.detail)
]
)
}