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 132622b479
commit 9b33a89318
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>
+4 -8
View File
@@ -581,10 +581,8 @@ export function CeilingSection({
onChange={(id) => host.onSetCeilingType(id)}
options={ceiling.ceilingTypes.map((ct) => ({
value: ct.id,
label: t("objinfo.wall.presetLabel", {
name: ct.name,
thickness: ct.thickness.toFixed(2),
}),
label: ct.label,
title: ct.name,
}))}
title={t("objinfo.ceiling.preset")}
width={150}
@@ -717,10 +715,8 @@ export function WallSection({
onChange={(id) => host.onSetWallType(id)}
options={wall.wallTypes.map((wt) => ({
value: wt.id,
label: t("objinfo.wall.presetLabel", {
name: wt.name,
thickness: wt.thickness.toFixed(2),
}),
label: wt.label,
title: wt.name,
}))}
title={t("objinfo.wall.preset")}
width={150}