From 64f47d5ad67cd01f770dab6b006fc8ee9891b47a Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 16 Apr 2026 21:28:30 +0800 Subject: [PATCH] fix(scheduling): truncate long customer names, prevent list item wrap - Customer name in list items: truncate with max-w-[40%] - Daily km and completion rate: flex-shrink-0 to stay on same line Co-Authored-By: Claude Opus 4.6 (1M context) --- src/modules/scheduling/SuggestionList.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/scheduling/SuggestionList.tsx b/src/modules/scheduling/SuggestionList.tsx index 591c04d..70a06b4 100644 --- a/src/modules/scheduling/SuggestionList.tsx +++ b/src/modules/scheduling/SuggestionList.tsx @@ -55,10 +55,10 @@ export default function SuggestionList({ suggestions, onSelect }: Props) { · {v.region} -
- {v.customer || '-'} - 日均 {Math.round(v.customerAvgDaily)} km - 完成 = 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)} +
+ {v.customer || '-'} + 日均 {Math.round(v.customerAvgDaily)} km + 完成 = 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}