diff --git a/frontend/src/components/exercises/ExerciseFormPageRoot.jsx b/frontend/src/components/exercises/ExerciseFormPageRoot.jsx index 0309506..081b6be 100644 --- a/frontend/src/components/exercises/ExerciseFormPageRoot.jsx +++ b/frontend/src/components/exercises/ExerciseFormPageRoot.jsx @@ -2735,258 +2735,6 @@ function ExerciseFormPageRoot() { )} - {aiSuggestionPreview && - (() => { - const p = aiSuggestionPreview - const summaryBoxSx = { - padding: '10px 12px', - borderRadius: '8px', - border: '1px solid var(--border)', - background: 'var(--surface2)', - fontSize: '13px', - lineHeight: 1.45, - whiteSpace: 'pre-wrap', - wordBreak: 'break-word', - minHeight: '72px', - } - const canApplySomething = - (p.applySummary && p.summaryAfterHtml) || p.skillChoices.some((c) => c.include) - return ( -
discardExerciseAiSuggestionPreview()} - onKeyDown={(e) => e.key === 'Escape' && discardExerciseAiSuggestionPreview()} - > -
e.stopPropagation()} - > -

KI-Vorschlag übernehmen

-

- Vergleichen und nur die gewünschten Teile übernehmen. Es werden keine Daten automatisch gespeichert. -

- - {p.hasSummaryProposal ? ( -
-
- Kurzfassung -
- -
-
-
- Aktuell (ohne Formatierung) -
-
{p.summaryBeforePlain || '(leer)'}
-
-
-
KI-Vorschlag
-
- {p.summaryAfterPlain || '(leer)'} -
-
-
-
- ) : null} - - {p.skillsRequested ? ( -
-
-
- Fähigkeiten ({p.skillChoices.length} - {p.skillChoices.length === 1 ? ' Vorschlag' : ' Vorschläge'}) -
- {p.skillChoices.length > 0 ? ( -
- - -
- ) : null} -
- {p.skillChoices.length === 0 ? ( -

- Keine passenden Fähigkeiten — der Katalog-Vorschlag war leer oder enthielt nur ungültige IDs. -

- ) : ( -
    - {p.skillChoices.map((c) => ( -
  • - -
  • - ))} -
- )} -
- ) : null} - -
- - -
-
-
- ) - })()} {mediaPreview && ( + {aiSuggestionPreview && + (() => { + const p = aiSuggestionPreview + const summaryBoxSx = { + padding: '10px 12px', + borderRadius: '8px', + border: '1px solid var(--border)', + background: 'var(--surface2)', + fontSize: '13px', + lineHeight: 1.45, + whiteSpace: 'pre-wrap', + wordBreak: 'break-word', + minHeight: '72px', + } + const canApplySomething = + (p.applySummary && p.summaryAfterHtml) || p.skillChoices.some((c) => c.include) + return ( +
discardExerciseAiSuggestionPreview()} + onKeyDown={(e) => e.key === 'Escape' && discardExerciseAiSuggestionPreview()} + > +
e.stopPropagation()} + > +

KI-Vorschlag übernehmen

+

+ Vergleichen und nur die gewünschten Teile übernehmen. Es werden keine Daten automatisch gespeichert. +

+ + {p.hasSummaryProposal ? ( +
+
+ Kurzfassung +
+ +
+
+
+ Aktuell (ohne Formatierung) +
+
{p.summaryBeforePlain || '(leer)'}
+
+
+
KI-Vorschlag
+
+ {p.summaryAfterPlain || '(leer)'} +
+
+
+
+ ) : null} + + {p.skillsRequested ? ( +
+
+
+ Fähigkeiten ({p.skillChoices.length} + {p.skillChoices.length === 1 ? ' Vorschlag' : ' Vorschläge'}) +
+ {p.skillChoices.length > 0 ? ( +
+ + +
+ ) : null} +
+ {p.skillChoices.length === 0 ? ( +

+ Keine passenden Fähigkeiten — der Katalog-Vorschlag war leer oder enthielt nur ungültige IDs. +

+ ) : ( +
    + {p.skillChoices.map((c) => ( +
  • + +
  • + ))} +
+ )} +
+ ) : null} + +
+ + +
+
+
+ ) + })()} + setComboStationPickerIx(null)}