From 53d15450a82aa0b28a8df8aa6764e3f282c04af3 Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Tue, 27 Oct 2026 16:24:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=B3=BB=E7=BB=9F=E5=8C=96=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E5=A4=9A=E4=BA=BA=E5=A7=93=E5=90=8D=E9=80=90=E8=A1=8C?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/systemization-todos.blade.php | 39 +++++++++++++++++- .../Business/SystemizationTodosTest.php | 41 +++++++++++++++++++ 2 files changed, 78 insertions(+), 2 deletions(-) diff --git a/resources/views/business/pages/systemization-todos.blade.php b/resources/views/business/pages/systemization-todos.blade.php index 4d84db70..62c78627 100644 --- a/resources/views/business/pages/systemization-todos.blade.php +++ b/resources/views/business/pages/systemization-todos.blade.php @@ -70,6 +70,9 @@ .sys-todo-table__inline-actions .sys-todo-table__inline-add { margin-top:.3rem; } .sys-todo-table__progress-notes { white-space:normal; } .sys-todo-table__progress-notes-content { display:flex; min-width:0; flex-direction:column; gap:.35rem; } + .sys-todo-table__people { white-space:normal; } + .sys-todo-table__people-list { display:grid; min-width:0; gap:.08rem; } + .sys-todo-table__person { display:block; min-width:0; line-height:1.45; overflow-wrap:anywhere; } .sys-todo-table__detail { display:grid; min-width:0; gap:.15rem; } .sys-todo-table__detail-label { color:#856632; font-size:.66rem; font-weight:600; } .sys-todo-table__detail-text { display:block; min-width:0; white-space:pre-line; overflow-wrap:anywhere; line-height:1.6; } @@ -389,6 +392,16 @@ (string) $value, )); }; + $personNames = static function (?string $value): array { + $parts = preg_split('/[、,,;;\/]+/u', trim((string) $value)) ?: []; + + return collect($parts) + ->map(static fn (string $name): string => trim($name)) + ->filter(static fn (string $name): bool => $name !== '' && $name !== '—') + ->unique() + ->values() + ->all(); + }; $sectionLabels = $items ->map(static fn ($groupItem): string => trim((string) $groupItem->section_display)) ->all(); @@ -586,8 +599,30 @@ @endif -