diff --git a/project/frontend/src/components/KPIForm.tsx b/project/frontend/src/components/KPIForm.tsx
index f58d88d..13152cc 100644
--- a/project/frontend/src/components/KPIForm.tsx
+++ b/project/frontend/src/components/KPIForm.tsx
@@ -7,6 +7,7 @@ import type { Kennzahl } from "../types/kpi";
import { typeDisplayMapping } from "../types/kpi";
import Snackbar from "@mui/material/Snackbar";
import MuiAlert from "@mui/material/Alert";
+import { API_HOST } from "../util/api";
interface KPIFormProps {
@@ -92,7 +93,7 @@ export function KPIForm({ mode, initialData, onSave, onCancel, loading = false,
localStorage.setItem("spacyData", JSON.stringify(updated));
// POST Request an das Flask-Backend
- const response = await fetch("http://localhost:5050/api/spacy/append-training-entry", {
+ const response = await fetch(`${API_HOST}/api/spacy/append-training-entry/`, {
method: "POST",
headers: {
"Content-Type": "application/json"
@@ -240,42 +241,54 @@ export function KPIForm({ mode, initialData, onSave, onCancel, loading = false,
+
- {mode === 'add' && (
- <>
-
-
- updateField('active', e.target.checked)}
- sx={{ color: '#383838' }}
- />
- }
- label="Aktiv"
+
+ updateField('active', e.target.checked)}
+ sx={{
+ color: '#666666',
+ '&.Mui-checked': {
+ color: '#333333',
+ },
+ '&:hover': {
+ backgroundColor: 'rgba(102, 102, 102, 0.04)',
+ }
+ }}
/>
-
- Die Kennzahl ist aktiv und wird angezeigt
-
-
-
- updateField('mandatory', e.target.checked)}
- sx={{ color: '#383838' }}
- />
- }
- label="Erforderlich"
+ }
+ label="Aktiv"
+ />
+
+ Die Kennzahl ist aktiv und wird angezeigt
+
+
+
+ updateField('mandatory', e.target.checked)}
+ sx={{
+ color: '#666666',
+ '&.Mui-checked': {
+ color: '#333333',
+ },
+ '&:hover': {
+ backgroundColor: 'rgba(102, 102, 102, 0.04)',
+ }
+ }}
/>
-
- Die Kennzahl erlaubt keine leeren Werte
-
-
- >
- )}
+ }
+ label="Erforderlich"
+ />
+
+ Die Kennzahl erlaubt keine leeren Werte
+
+
diff --git a/project/frontend/src/components/pdfViewer.tsx b/project/frontend/src/components/pdfViewer.tsx
index b41a433..b88a723 100644
--- a/project/frontend/src/components/pdfViewer.tsx
+++ b/project/frontend/src/components/pdfViewer.tsx
@@ -188,6 +188,10 @@ export default function PDFViewer({
);
}, []);
+ const contentWidth = baseWidth ? baseWidth * 0.98 * zoomLevel : 0;
+ const containerWidth = baseWidth ? baseWidth : 0;
+ const willOverflow = contentWidth > containerWidth;
+
return (