[263] UX: Startansicht kleiner Häuser, Raumprogramm, Statusleiste, Ressourcen-Reiter, Menübegriffe, Über-Eintrag, Esc
Einpassen: Mindestausschnitt 8 m mit Bauteilen (30 m nur leer), 6 % Rand. Raumprogramm zweizeilig mit Tooltips. Statusleiste: Hinweis mindestens 170 px mit title, unter 1500 px enger ohne Build. Ressourcen-Reiter umbrechen, Zeilennamen mit title. Menü: 3D-Ansicht statt zweimal Perspektive, Ellipsen ' …' einheitlich (Test), Hilfe → Über dossier …. Publiziert-Meldung nennt die Datei; Verlauf/BCF/Kollisionen schliessen mit Esc.
This commit is contained in:
37 files changed
+301
-81
No files matched your search
@@ -12,6 +12,7 @@ import type { DropdownItem } from "./Dropdown";
|
||||
import { t } from "../i18n";
|
||||
import type { View3d, ViewType } from "../model/viewTypes";
|
||||
import { openRenderDialog } from "../state/renderDialogHook";
|
||||
import { openAboutDialog } from "../state/aboutDialogHook";
|
||||
import { openShortcutOverview } from "../state/shortcutOverviewHook";
|
||||
import { openImageExportDialog } from "../state/imageExportDialogHook";
|
||||
|
||||
@@ -185,7 +186,12 @@ export const AppMenuBar = memo(function AppMenuBar({
|
||||
{ label: t("menu.window.settings"), onSelect: onOpenSettings },
|
||||
];
|
||||
|
||||
const helpItems: DropdownItem[] = [{ label: t("menu.help.shortcuts"), onSelect: openShortcutOverview }];
|
||||
const helpItems: DropdownItem[] = [
|
||||
{ label: t("menu.help.shortcuts"), onSelect: openShortcutOverview },
|
||||
{ divider: true },
|
||||
// [263] Auf macOS (natives Menü) steht „Über dossier“ im App-Menü; dieses Menü gibt es nur im Browser/Electron.
|
||||
{ label: t("menu.help.about"), onSelect: openAboutDialog },
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="tb-menubar" role="menubar">
|
||||
|
||||
@@ -422,7 +422,7 @@ export const StatusBar = memo(function StatusBar({
|
||||
return (
|
||||
<footer className="statusbar">
|
||||
{/* Links: Werkzeug-Hinweis. */}
|
||||
<span className="sb-hint" data-testid="status-hint">{pickHint ?? hint}</span>
|
||||
<span className="sb-hint" data-testid="status-hint" title={pickHint ?? hint}>{pickHint ?? hint}</span>
|
||||
|
||||
{/* Rechts: abgeleiteter Wert-Cluster. Interaktive Kontrollen (Linien-
|
||||
Darstellung, Fang) zuerst, danach die reinen Anzeigewerte. */}
|
||||
@@ -460,8 +460,10 @@ export const StatusBar = memo(function StatusBar({
|
||||
<Field label={t("status.floor")} value={activeFloor} />
|
||||
<Sep />
|
||||
<Field label={t("status.layer")} value={activeLayer} />
|
||||
<Sep />
|
||||
<span className="sb-field" title={t("status.build.title")}><span className="sb-val" style={{ opacity: 0.55 }}>{formatBuildShort(BUILD_INFO, t("about.build"))}</span></span>
|
||||
<span className="sb-build">
|
||||
<Sep />
|
||||
<span className="sb-field" title={t("status.build.title")}><span className="sb-val" style={{ opacity: 0.55 }}>{formatBuildShort(BUILD_INFO, t("about.build"))}</span></span>
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// aus App, Aktionen melden sich über Callbacks zurück. Bezeichner englisch,
|
||||
// UI-Text/Kommentare deutsch (CONVENTIONS.md).
|
||||
|
||||
import { setAboutDialogOpener } from "../state/aboutDialogHook";
|
||||
import { TEXT_FONTS } from "../text/fontList";
|
||||
import { t } from "../i18n";
|
||||
import { useModalFocus } from "./modalFocus";
|
||||
@@ -1393,6 +1394,11 @@ export const TopBar = memo(function TopBar({
|
||||
// Unter Tauri (native macOS-Ampeln oben links via titleBarStyle "Overlay")
|
||||
// braucht die Zeile links Platz, damit `dossier.` nicht darunter liegt.
|
||||
const [aboutOpen, setAboutOpen] = useState(false);
|
||||
// [263] Hilfe → „Über dossier …“ öffnet denselben Dialog wie die Wortmarke.
|
||||
useEffect(() => {
|
||||
setAboutDialogOpener(() => setAboutOpen(true));
|
||||
return () => setAboutDialogOpener(null);
|
||||
}, []);
|
||||
|
||||
const tauriNativeTitlebar =
|
||||
typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
|
||||
|
||||
@@ -806,7 +806,7 @@ export function ComponentsTab({
|
||||
<ColorSwatch color={c.foreground ?? c.color} />
|
||||
)}
|
||||
</span>
|
||||
<span className="res-md-row-name">{c.name}</span>
|
||||
<span className="res-md-row-name" title={c.name}>{c.name}</span>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -382,7 +382,7 @@ export function HatchesTab({
|
||||
<span className="res-md-row-thumb">
|
||||
<HatchSwatch hatch={h} size={30} />
|
||||
</span>
|
||||
<span className="res-md-row-name">{h.name}</span>
|
||||
<span className="res-md-row-name" title={h.name}>{h.name}</span>
|
||||
</button>
|
||||
))}
|
||||
{hatches.length === 0 && (
|
||||
|
||||
@@ -275,7 +275,7 @@ function LayeredStylesTab({
|
||||
orientation={orientation}
|
||||
/>
|
||||
</span>
|
||||
<span className="res-md-row-name">{s.name}</span>
|
||||
<span className="res-md-row-name" title={s.name}>{s.name}</span>
|
||||
</button>
|
||||
))}
|
||||
{types.length === 0 && (
|
||||
|
||||
@@ -287,7 +287,7 @@ export function LinesTab({
|
||||
}`}
|
||||
onClick={() => setSelectedId(l.id)}
|
||||
>
|
||||
<span className="res-md-row-name">{l.name}</span>
|
||||
<span className="res-md-row-name" title={l.name}>{l.name}</span>
|
||||
<LineSwatch style={l} width={150} height={14} />
|
||||
</button>
|
||||
))}
|
||||
|
||||
@@ -146,7 +146,7 @@ export function ModelViewsTab({ project, handlers }: { project: Project; handler
|
||||
if (e.key === "Enter" || e.key === " ") setSelectedId(id);
|
||||
}}
|
||||
>
|
||||
<span className="res-md-row-name" style={{ flex: 1, opacity: own ? 1 : 0.75 }}>
|
||||
<span className="res-md-row-name" title={name} style={{ flex: 1, opacity: own ? 1 : 0.75 }}>
|
||||
{name}
|
||||
</span>
|
||||
<button
|
||||
|
||||
@@ -102,7 +102,7 @@ export function PalettesTab({
|
||||
className={`res-md-row${selected?.id === p.id ? " active" : ""}`}
|
||||
onClick={() => setSelectedId(p.id)}
|
||||
>
|
||||
<span className="res-md-row-name">{p.name}</span>
|
||||
<span className="res-md-row-name" title={p.name}>{p.name}</span>
|
||||
<span className="res-md-row-meta">{p.colors.length}</span>
|
||||
</button>
|
||||
))}
|
||||
|
||||
@@ -156,7 +156,7 @@ export function PenSetsTab({
|
||||
className={`res-md-row${selected?.id === s.id ? " active" : ""}`}
|
||||
onClick={() => setSelectedId(s.id)}
|
||||
>
|
||||
<span className="res-md-row-name">{s.name}</span>
|
||||
<span className="res-md-row-name" title={s.name}>{s.name}</span>
|
||||
{project.activePenSetId === s.id && (
|
||||
<span className="res-pen-active-badge">{t("resources.pens.activeBadge")}</span>
|
||||
)}
|
||||
|
||||
@@ -59,7 +59,7 @@ export function TypeLibraryTab<T extends { id: string; name: string }>({
|
||||
className={`res-md-row${selected?.id === item.id ? " active" : ""}`}
|
||||
onClick={() => setSelectedId(item.id)}
|
||||
>
|
||||
<span className="res-md-row-name">{item.name}</span>
|
||||
<span className="res-md-row-name" title={item.name}>{item.name}</span>
|
||||
</button>
|
||||
))}
|
||||
{types.length === 0 && (
|
||||
|
||||
@@ -271,7 +271,7 @@ export function ViewTemplatesTab({ project, handlers }: { project: Project; hand
|
||||
if (e.key === "Enter" || e.key === " ") setSelectedId(x.id);
|
||||
}}
|
||||
>
|
||||
<span className="res-md-row-name" style={{ flex: 1 }}>
|
||||
<span className="res-md-row-name" title={x.name} style={{ flex: 1 }}>
|
||||
{x.name}
|
||||
{usedBy(x.id) > 0 && <span style={{ display: "block", fontSize: "0.85em", opacity: 0.65 }}>{t("resources.viewTemplates.linkedCount", { n: usedBy(x.id) })}</span>}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user