Merge branch 'pending-238' into claude/practical-noether-1hb2s1
This commit is contained in:
5 files changed
+61
-16
No files matched your search
@@ -43,7 +43,9 @@ import type {
|
||||
// v12: Werkzeug-Palette ZURÜCK ins Default-Layout (Nutzer-Entscheid: Werkzeuge
|
||||
// gehören in ein andockbares Panel statt ins Ribbon-Band) — wieder oben links,
|
||||
// Attribute darunter (Vectorworks-Bild aus v6, vor dem Ribbon-UI-Phase-3-Bump).
|
||||
export const LAYOUT_VERSION = 12;
|
||||
// v13 ([238]): rechts oben (Objekt-Info/Flächenbilanz) bekommt mehr Höhe: Gewichte 1,6 : 1 statt 1 : 1,5 (die
|
||||
// Flächenbilanz mit Raumprogramm war nur ~300 px hoch). Die Höhe merkt sich der Gruppen-Splitter (`resizeGroups`).
|
||||
export const LAYOUT_VERSION = 13;
|
||||
|
||||
/** localStorage-Schlüssel des zuletzt benutzten Layouts. */
|
||||
const CURRENT_KEY = "cad.layout";
|
||||
@@ -75,11 +77,11 @@ const DEFAULT_LEFT_GROUPS: DockGroup[] = [
|
||||
{ tabs: ["attributes"], activeTab: "attributes", weight: 1 },
|
||||
];
|
||||
const DEFAULT_RIGHT_GROUPS: DockGroup[] = [
|
||||
{ tabs: ["object-info", "room-balance"], activeTab: "object-info", weight: 1 },
|
||||
{ tabs: ["object-info", "room-balance"], activeTab: "object-info", weight: 1.6 },
|
||||
{
|
||||
tabs: ["drawing-levels", "layers", "site", "elements", "view-snapshots", "layouts"],
|
||||
activeTab: "drawing-levels",
|
||||
weight: 1.5,
|
||||
weight: 1,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -5088,6 +5088,19 @@ body {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
font-size: 12px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
/* [238] Auslaufender Rand unten: zeigt, dass unter der letzten sichtbaren Zeile noch Felder folgen (Gelände: Material,
|
||||
Höhenversatz …), statt dass die Zeile wie abgeschnitten wirkt. Klebt am unteren Rand, liegt am Ende im Polster (kein Inhalt verdeckt). */
|
||||
.objinfo-panel::after {
|
||||
content: "";
|
||||
flex: 0 0 auto;
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
height: 18px;
|
||||
margin: 0 -8px -18px;
|
||||
background: linear-gradient(transparent, var(--panel));
|
||||
pointer-events: none;
|
||||
}
|
||||
/* Gelände/Baugrube/Schatten in der Objekt-Info: der Abschnitt wächst mit seinem Inhalt (sonst schrumpft er in der
|
||||
Flex-Spalte auf eine Zeile Höhe und verdeckt die Felder, `.site-panel` ist sonst ein eigener Scroll-Bereich). */
|
||||
@@ -7499,6 +7512,14 @@ body {
|
||||
border-radius: 4px;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
font-size: 12px; /* [238] wie die übrigen Werkzeugleisten (sonst 15 px vom Basis-Knopf) */
|
||||
}
|
||||
.layout-sheet-toolbar .nav-add .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
}
|
||||
.layout-sheet-toolbar .res-select {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.layout-sheet-name {
|
||||
@@ -7679,6 +7700,26 @@ body {
|
||||
width: 64px;
|
||||
}
|
||||
|
||||
/* Bild-HUD ([238]): feste Breite und feste Knopfposition (Zuschneiden ↔ Fertig springt nicht). */
|
||||
.layout-sheet-hud-image {
|
||||
width: 240px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.layout-sheet-hud-image .layout-sheet-hud-title {
|
||||
max-width: none;
|
||||
}
|
||||
.layout-sheet-hud-image .layout-sheet-hud-title .sheet-crop-toggle {
|
||||
flex: 0 0 auto;
|
||||
min-width: 96px;
|
||||
justify-content: center;
|
||||
}
|
||||
.layout-sheet-hud-image .sheet-crop-hint {
|
||||
min-height: 2.6em;
|
||||
}
|
||||
.layout-sheet-hud-image .sheet-crop-hint.is-idle {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.layout-sheet-hud-size {
|
||||
font-size: 10px;
|
||||
color: var(--muted, #6e6e6e);
|
||||
@@ -7730,6 +7771,7 @@ body {
|
||||
.layout-sheet-hud-actions .nav-add,
|
||||
.layout-sheet-hud-title .nav-add,
|
||||
.layout-sheet-guides .nav-add {
|
||||
font-size: 12px;
|
||||
width: auto;
|
||||
min-width: 20px;
|
||||
height: 24px;
|
||||
|
||||
@@ -324,13 +324,13 @@ export const RenderDialogHost = memo(function RenderDialogHost() {
|
||||
))}
|
||||
</select>
|
||||
<div style={{ display: "flex", gap: 8, marginTop: 6, alignItems: "center" }}>
|
||||
<label>
|
||||
<label className="imp-field-label">
|
||||
{t("render.width")}{" "}
|
||||
<input className="imp-input" type="number" min={16} max={MAX_EDGE} style={{ width: 90 }} value={dims.width} disabled={busy} onChange={(e) => { setSize("custom"); setDims({ ...dims, width: Number(e.target.value) }); }} />
|
||||
<input className="imp-input imp-input-flush" type="number" min={16} max={MAX_EDGE} style={{ width: 90 }} value={dims.width} disabled={busy} onChange={(e) => { setSize("custom"); setDims({ ...dims, width: Number(e.target.value) }); }} />
|
||||
</label>
|
||||
<label>
|
||||
<label className="imp-field-label">
|
||||
{t("render.height")}{" "}
|
||||
<input className="imp-input" type="number" min={16} max={MAX_EDGE} style={{ width: 90 }} value={dims.height} disabled={busy} onChange={(e) => { setSize("custom"); setDims({ ...dims, height: Number(e.target.value) }); }} />
|
||||
<input className="imp-input imp-input-flush" type="number" min={16} max={MAX_EDGE} style={{ width: 90 }} value={dims.height} disabled={busy} onChange={(e) => { setSize("custom"); setDims({ ...dims, height: Number(e.target.value) }); }} />
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
@@ -346,7 +346,7 @@ export const RenderDialogHost = memo(function RenderDialogHost() {
|
||||
</section>
|
||||
<section className="imp-section">
|
||||
<div className="imp-section-title">{t("render.time")}</div>
|
||||
<input className="imp-input" type="datetime-local" data-testid="render-time" value={when} disabled={busy} onChange={(e) => setWhen(e.target.value)} />
|
||||
<input className="imp-input imp-input-flush" type="datetime-local" data-testid="render-time" value={when} disabled={busy} onChange={(e) => setWhen(e.target.value)} />
|
||||
{sun && (
|
||||
<div className="imp-note" data-testid="render-sun">
|
||||
{t("render.sun", { az: sun.azimuth.toFixed(0), el: sun.elevation.toFixed(0) })}
|
||||
@@ -355,7 +355,7 @@ export const RenderDialogHost = memo(function RenderDialogHost() {
|
||||
)}
|
||||
</section>
|
||||
<section className="imp-section">
|
||||
<label>
|
||||
<label className="imp-field-label">
|
||||
<input type="checkbox" data-testid="render-backfilled" checked={backfilled} disabled={busy} onChange={(e) => setBackfilled(e.target.checked)} /> {t("render.backfilled")}
|
||||
</label>
|
||||
<div className="imp-note">{t("render.backfilled.hint")}</div>
|
||||
@@ -364,7 +364,7 @@ export const RenderDialogHost = memo(function RenderDialogHost() {
|
||||
<section className="imp-section">
|
||||
<div className="imp-section-title">{t("render.blenderPath")}</div>
|
||||
<input
|
||||
className="imp-input"
|
||||
className="imp-input imp-input-flush"
|
||||
type="text"
|
||||
data-testid="render-blender-path"
|
||||
style={{ width: "100%" }}
|
||||
@@ -411,7 +411,7 @@ export const RenderDialogHost = memo(function RenderDialogHost() {
|
||||
<div className="imp-note">{t("render.done", { width: dims.width, height: dims.height })}</div>
|
||||
<img src={imageUrl} alt={t("render.title")} style={{ maxWidth: "100%", maxHeight: 360, display: "block", marginTop: 6 }} />
|
||||
{(getState().project.layouts ?? []).length > 0 && (
|
||||
<label style={{ display: "flex", gap: 6, alignItems: "center", marginTop: 8 }}>
|
||||
<label className="imp-field-label" style={{ display: "flex", gap: 6, alignItems: "center", marginTop: 8 }}>
|
||||
<span>{t("render.toLayout.target")}</span>
|
||||
<select className="imp-select" data-testid="render-layout-target" value={layoutTarget} onChange={(e) => setLayoutTarget(e.target.value)}>
|
||||
{(getState().project.layouts ?? []).map((l) => (
|
||||
|
||||
@@ -60,7 +60,7 @@ export function SheetImageHud({
|
||||
/>
|
||||
);
|
||||
return (
|
||||
<div className="layout-sheet-hud" data-sheet-ui data-image-hud data-testid="image-hud">
|
||||
<div className="layout-sheet-hud layout-sheet-hud-image" data-sheet-ui data-image-hud data-testid="image-hud">
|
||||
<div className="layout-sheet-hud-title">{image.name || t("sheetImage.title")}</div>
|
||||
<div className="layout-sheet-hud-row">
|
||||
<span>X / Y mm</span>
|
||||
@@ -83,7 +83,7 @@ export function SheetImageHud({
|
||||
<div className="layout-sheet-hud-title" style={{ marginTop: 6, display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 }}>
|
||||
<span>{t("sheetImage.crop")}</span>
|
||||
{onToggleCrop && (
|
||||
<button className={`nav-add${cropping ? " active" : ""}`} data-testid="image-crop-toggle" onClick={onToggleCrop} title={t("sheetImage.cropHint")}>
|
||||
<button className={`nav-add sheet-crop-toggle${cropping ? " active" : ""}`} data-testid="image-crop-toggle" onClick={onToggleCrop} title={t("sheetImage.cropHint")}>
|
||||
{cropping ? t("sheetImage.cropDone") : t("sheetImage.cropStart")}
|
||||
</button>
|
||||
)}
|
||||
@@ -96,7 +96,7 @@ export function SheetImageHud({
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
{cropping && <div className="layout-sheet-hud-size">{t("sheetImage.cropHint")}</div>}
|
||||
<div className={`layout-sheet-hud-size sheet-crop-hint${cropping ? "" : " is-idle"}`} aria-hidden={!cropping}>{t("sheetImage.cropHint")}</div>
|
||||
<div className="layout-sheet-hud-actions">
|
||||
{image.crop && (
|
||||
<button className="nav-add" data-testid="image-crop-reset" onClick={() => onPatch(cropImage(image, undefined))} title={t("sheetImage.cropReset")}>
|
||||
|
||||
Reference in new issue
Block a user