Wandtyp-Kürzel: Component.abbrev + wallTypeLabel() + Kürzel-Feld im ResourceManager; Geschoss-Dropdown schmal
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user