diff --git a/src/components/furni-editor/views/FurniEditorEditView.tsx b/src/components/furni-editor/views/FurniEditorEditView.tsx index 2c0c0a7..f9ac1bb 100644 --- a/src/components/furni-editor/views/FurniEditorEditView.tsx +++ b/src/components/furni-editor/views/FurniEditorEditView.tsx @@ -35,16 +35,16 @@ const Section: FC = ({ title, children, defaultOpen = true }) => const [ open, setOpen ] = useState(defaultOpen); return ( -
+
- { open &&
{ children }
} + { open &&
{ children }
}
); }; @@ -220,28 +220,31 @@ export const FurniEditorEditView: FC = props => const readonlyClass = 'w-full px-2 py-1 text-sm font-mono rounded-sm border border-[#ddd] bg-[#f2f2eb] text-[#555] select-all'; return ( - - { /* Header */ } - - -
- -
- - - ID: { item.id } - | - Sprite: { item.spriteId } + + { /* Hero header */ } +
+ +
+ +
+ + { furniName || form.publicName || form.itemName } + { form.itemName } + + ID { item.id } + SPRITE { item.spriteId } + { item.usageCount } IN USE + { isDirty && UNSAVED } + - ({ item.usageCount } in use) +
- { isDirty && Unsaved changes } - +
{ /* Primary edit surface: furnidata display name + description (server-authoritative, live) */ } -
-
- Display Name & Description +
+
+ Display Name & DescriptionLIVE { (furniName !== String(furniDataEntry?.name ?? '') || furniDescription !== String(furniDataEntry?.description ?? '')) && Unsaved }