From a520fc73afd8332a1944816c8fc41515b8dd86e4 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 6 Jun 2026 13:02:56 +0200 Subject: [PATCH] style(furni-editor): move display-name edit to top + unify theme (neutral labels, matched selects, single teal accent) --- .../views/FurniEditorEditView.tsx | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/src/components/furni-editor/views/FurniEditorEditView.tsx b/src/components/furni-editor/views/FurniEditorEditView.tsx index 2e45045..af18754 100644 --- a/src/components/furni-editor/views/FurniEditorEditView.tsx +++ b/src/components/furni-editor/views/FurniEditorEditView.tsx @@ -216,7 +216,7 @@ export const FurniEditorEditView: FC = props => const inputClass = (field?: string) => `w-full px-2 py-1 text-sm leading-normal rounded-sm border border-[#bbb] focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40 min-h-[calc(1.5em+0.5rem+2px)]${ field && validation[field] ? ' border-red-500 bg-red-50' : '' }`; - const labelClass = 'text-[10px] font-bold text-secondary uppercase tracking-wider mb-0.5 flex items-center gap-0.5'; + const labelClass = 'text-[11px] font-bold text-[#374151] mb-0.5 flex items-center gap-0.5'; const readonlyClass = 'w-full px-2 py-1 text-sm font-mono rounded-sm border border-[#ddd] bg-[#f2f2eb] text-[#555] select-all'; return ( @@ -238,6 +238,31 @@ export const FurniEditorEditView: FC = props => { isDirty && Unsaved changes } + { /* Primary edit surface: furnidata display name + description (server-authoritative, live) */ } +
+
+ Display Name & Description + { (furniName !== String(furniDataEntry?.name ?? '') || furniDescription !== String(furniDataEntry?.description ?? '')) && + Unsaved } +
+
+ +
+ + setFurniName(e.target.value) } maxLength={ 256 } /> +
+
+ +