Skip to content

Commit

Permalink
fix(rules): text spacing of updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Oct 10, 2024
1 parent 025b66e commit 342119e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/pages/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 342119e

Please sign in to comment.