Wandtyp-Kürzel: Component.abbrev + wallTypeLabel() + Kürzel-Feld im ResourceManager; Geschoss-Dropdown schmal

This commit is contained in:
2026-07-05 23:16:38 +02:00
parent 9133c0961d
commit 889cbb2c12
8 changed files with 65 additions and 11 deletions
+6 -2
View File
@@ -24,7 +24,7 @@
import type { ReactNode } from "react";
import { t } from "../i18n";
import { formatM } from "../model/types";
import { formatM, wallTypeLabel } from "../model/types";
import { PEN_WEIGHTS } from "../model/types";
import type { AttributeSource } from "../model/types";
import { usePanelHost } from "./host";
@@ -75,7 +75,11 @@ export function AttributesPanel() {
value={host.activeWallTypeId}
disabled={!host.toolsEnabled}
onChange={(v) => host.onActiveWallTypeId(v)}
options={project.wallTypes.map((wt) => ({ value: wt.id, label: wt.name }))}
options={project.wallTypes.map((wt) => ({
value: wt.id,
label: wallTypeLabel(wt, project.components),
title: wt.name,
}))}
/>
</span>
</div>