fix(rules): text spacing of updated at

This commit is contained in:
kunish 2024-10-10 19:19:49 +08:00
parent 025b66e2fe
commit 342119e01e
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
2 changed files with 8 additions and 5 deletions

View File

@ -205,7 +205,7 @@ export default () => {
</div>
<div class="text-xs text-slate-500">
{rule.type} :: {rule.proxy}
{`${rule.type} :: ${rule.proxy}`}
</div>
</div>
</div>
@ -240,15 +240,14 @@ export default () => {
<div class="card card-bordered card-compact bg-base-200 p-4">
<div class="flex items-center gap-2 pr-8">
<span class="break-all">{ruleProvider.name}</span>
<div class="badge badge-sm">
{ruleProvider.ruleCount}
</div>
</div>
<div class="text-xs text-slate-500">
{ruleProvider.vehicleType} / {ruleProvider.behavior} /
{t('updated')}{' '}
{formatTimeFromNow(ruleProvider.updatedAt)}
{`${ruleProvider.vehicleType} / ${ruleProvider.behavior} / ${t('updated')} ${formatTimeFromNow(ruleProvider.updatedAt)}`}
</div>
<Button

View File

@ -24,9 +24,13 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg'],
includeAssets: ['favicon.svg', ''],
workbox: { maximumFileSizeToCacheInBytes: 5 * 1024 * 1024 },
manifest: {
name: 'MetaCubeXD',
short_name: 'MetaCubeXD',
description: 'Mihomo Dashboard, The Official One, XD',
theme_color: '#000000',
icons: [
{
src: 'pwa-192x192.png',