From 04cc36c33a6eabfd2906eb6b3b9c63a0f4574335 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Thu, 16 Jul 2026 10:43:39 +0330 Subject: [PATCH] fix: clean up selected-service chip layout in ServiceSlotPicker Replace the .field-wrapped duration input (whose min-width + inner label overflowed the fixed 92px box) with a self-contained inline duration editor; drop flex-wrap and let the section->service name truncate with ellipsis so each chip stays on one tidy row. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../appointments/ServiceSlotPicker.tsx | 53 ++++++++++--------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/assets/admin/components/appointments/ServiceSlotPicker.tsx b/assets/admin/components/appointments/ServiceSlotPicker.tsx index 3c840665..fd059c00 100644 --- a/assets/admin/components/appointments/ServiceSlotPicker.tsx +++ b/assets/admin/components/appointments/ServiceSlotPicker.tsx @@ -144,36 +144,41 @@ export default function ServiceSlotPicker({
{selected.map(s => (
- + {s.section} {' ← '}{s.name} - - {editableDuration ? ( - - setDuration(s.uuid, Number(v) || 0)} - maxDigits={3} - placeholder="دقیقه" - /> - دقیقه - - ) : ( - {s.duration} دقیقه - )} - - + {editableDuration ? ( + + setDuration(s.uuid, Number(v) || 0)} + maxDigits={3} + style={{ width: 34, border: 'none', outline: 'none', background: 'transparent', textAlign: 'center', fontFamily: 'inherit', fontSize: 13, color: 'var(--text)' }} + /> + دقیقه + + ) : ( + {s.duration} دقیقه + )} +
))}