diff --git a/fe-admin/src/components/pe/PeDetailTabs.tsx b/fe-admin/src/components/pe/PeDetailTabs.tsx index 949d679..1384dc5 100644 --- a/fe-admin/src/components/pe/PeDetailTabs.tsx +++ b/fe-admin/src/components/pe/PeDetailTabs.tsx @@ -1084,36 +1084,40 @@ function BudgetCell({ value, editable, allowNegative = false, saving, onSave }: } const dirty = parse() !== value return ( -
- {allowNegative && ( - - )} - setText(e.target.value.replace(/[^\d.]/g, ''))} - placeholder="0" - className="h-7 min-w-0 px-1.5 text-right font-mono text-[12px]" - /> - +
+
+ {allowNegative && ( + + )} + setText(e.target.value.replace(/[^\d.]/g, ''))} + placeholder="0" + className="h-7 min-w-0 flex-1 px-1.5 text-right font-mono text-[12px]" + /> +
+
+ +
) } -// [S76] Dòng ghi chú phòng (Ghi chú từ PRO / từ CCM) — Textarea editable hoặc text display. -function BudgetNoteRow({ label, editable, value, setValue, savedValue, saving, onSave }: { - label: string +// [S76] Ô ghi chú phòng (Ghi chú từ PRO / từ CCM) — Textarea editable hoặc text display. +// Đặt trong của bảng ngân sách (không bọc row riêng). +function BudgetNoteCell({ editable, value, setValue, savedValue, saving, onSave }: { editable: boolean value: string setValue: (v: string) => void @@ -1121,30 +1125,26 @@ function BudgetNoteRow({ label, editable, value, setValue, savedValue, saving, o saving: boolean onSave: () => void }) { + if (!editable) { + return ( +
+ {savedValue || } +
+ ) + } return ( -
-
{label}
-
- {editable ? ( -
-