From bed62c64e84a9a80d947df1b238a9fa1853017f6 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Thu, 26 Mar 2026 17:31:55 +0800 Subject: [PATCH] fix: add @sinclair/typebox dep and fix delivery button text truncation (#673) --- package.json | 1 + pnpm-lock.yaml | 3 +++ src/pages/Cron/index.tsx | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 52c86d7bb..1417f89d9 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "postversion": "git push && git push --tags" }, "dependencies": { + "@sinclair/typebox": "^0.34.48", "clawhub": "^0.5.0", "electron-store": "^11.0.2", "electron-updater": "^6.8.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c6fdbda8..1f27b6e3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,9 @@ importers: .: dependencies: + '@sinclair/typebox': + specifier: ^0.34.48 + version: 0.34.48 clawhub: specifier: ^0.5.0 version: 0.5.0 diff --git a/src/pages/Cron/index.tsx b/src/pages/Cron/index.tsx index ae12ba9d2..24acf26f0 100644 --- a/src/pages/Cron/index.tsx +++ b/src/pages/Cron/index.tsx @@ -515,7 +515,7 @@ function TaskDialog({ job, configuredChannels, onClose, onSave }: TaskDialogProp size="sm" onClick={() => setDeliveryMode('none')} className={cn( - 'justify-start h-auto min-h-12 rounded-xl px-4 py-3 text-left', + 'justify-start h-auto min-h-12 rounded-xl px-4 py-3 text-left whitespace-normal', deliveryMode === 'none' ? 'bg-primary hover:bg-primary/90 text-primary-foreground border-transparent' : 'bg-[#eeece3] dark:bg-muted border-black/10 dark:border-white/10 hover:bg-black/5 dark:hover:bg-white/5 text-foreground/80 hover:text-foreground', @@ -532,7 +532,7 @@ function TaskDialog({ job, configuredChannels, onClose, onSave }: TaskDialogProp size="sm" onClick={() => setDeliveryMode('announce')} className={cn( - 'justify-start h-auto min-h-12 rounded-xl px-4 py-3 text-left', + 'justify-start h-auto min-h-12 rounded-xl px-4 py-3 text-left whitespace-normal', deliveryMode === 'announce' ? 'bg-primary hover:bg-primary/90 text-primary-foreground border-transparent' : 'bg-[#eeece3] dark:bg-muted border-black/10 dark:border-white/10 hover:bg-black/5 dark:hover:bg-white/5 text-foreground/80 hover:text-foreground',