Netz-Modul src/net (Offline-Modus, Host-Liste, kein fetch ausserhalb), Renderer-Umschalter WebGL2 entfernt, Offline-Schalter in den Einstellungen; i18n-Waechter gegen fest eingebaute Texte
This commit is contained in:
1 parent
cf99fc3d11
commit
3d864047cf
19 files changed
+329
-95
No files matched your search
@@ -8,6 +8,7 @@
|
||||
// gäbe es doppelte Knöpfe. Im Browser-Dev-Modus ebenfalls unsichtbar (`null`).
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { t } from "../i18n";
|
||||
|
||||
/** Von electron-preload.cjs via contextBridge injiziert (nur unter Electron). */
|
||||
interface DossierWindowApi {
|
||||
@@ -45,13 +46,13 @@ export function WindowControls() {
|
||||
|
||||
// Reihenfolge (macOS-Titelleiste links): Schliessen · Minimieren · Maximieren.
|
||||
return (
|
||||
<div className="win-controls" role="group" aria-label="Fenster">
|
||||
<div className="win-controls" role="group" aria-label={t("window.controls")}>
|
||||
<button
|
||||
type="button"
|
||||
className="win-btn win-btn-close"
|
||||
onClick={() => api.close()}
|
||||
title="Schliessen"
|
||||
aria-label="Schliessen"
|
||||
title={t("window.close")}
|
||||
aria-label={t("window.close")}
|
||||
>
|
||||
<svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true">
|
||||
<path
|
||||
@@ -66,8 +67,8 @@ export function WindowControls() {
|
||||
type="button"
|
||||
className="win-btn"
|
||||
onClick={() => api.minimize()}
|
||||
title="Minimieren"
|
||||
aria-label="Minimieren"
|
||||
title={t("window.minimize")}
|
||||
aria-label={t("window.minimize")}
|
||||
>
|
||||
<svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true">
|
||||
<path d="M1 5 L9 5" stroke="currentColor" strokeWidth="1.2" />
|
||||
|
||||
Reference in new issue
Block a user