fix: add @sinclair/typebox dep and fix delivery button text truncation (#673)

This commit is contained in:
paisley
2026-03-26 17:31:55 +08:00
committed by GitHub
Unverified
parent 992eda8fe0
commit bed62c64e8
3 changed files with 6 additions and 2 deletions

View File

@@ -65,6 +65,7 @@
"postversion": "git push && git push --tags" "postversion": "git push && git push --tags"
}, },
"dependencies": { "dependencies": {
"@sinclair/typebox": "^0.34.48",
"clawhub": "^0.5.0", "clawhub": "^0.5.0",
"electron-store": "^11.0.2", "electron-store": "^11.0.2",
"electron-updater": "^6.8.3", "electron-updater": "^6.8.3",

3
pnpm-lock.yaml generated
View File

@@ -12,6 +12,9 @@ importers:
.: .:
dependencies: dependencies:
'@sinclair/typebox':
specifier: ^0.34.48
version: 0.34.48
clawhub: clawhub:
specifier: ^0.5.0 specifier: ^0.5.0
version: 0.5.0 version: 0.5.0

View File

@@ -515,7 +515,7 @@ function TaskDialog({ job, configuredChannels, onClose, onSave }: TaskDialogProp
size="sm" size="sm"
onClick={() => setDeliveryMode('none')} onClick={() => setDeliveryMode('none')}
className={cn( 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' deliveryMode === 'none'
? 'bg-primary hover:bg-primary/90 text-primary-foreground border-transparent' ? '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', : '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" size="sm"
onClick={() => setDeliveryMode('announce')} onClick={() => setDeliveryMode('announce')}
className={cn( 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' deliveryMode === 'announce'
? 'bg-primary hover:bg-primary/90 text-primary-foreground border-transparent' ? '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', : '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',