diff --git a/frontend/src/components/UnifiedPromptModal.jsx b/frontend/src/components/UnifiedPromptModal.jsx index ff17bfb..a8c1af0 100644 --- a/frontend/src/components/UnifiedPromptModal.jsx +++ b/frontend/src/components/UnifiedPromptModal.jsx @@ -390,7 +390,31 @@ export default function UnifiedPromptModal({ prompt, onSave, onClose }) { style={{ width: '100%', textAlign: 'left', resize: 'vertical', fontFamily: 'monospace', fontSize: 12 }} />
- Verwende {'{{'} und {'}}'} für Platzhalter (z.B. weight_data, nutrition_data) +
+ Verwende {'{{'} und {'}}'} für Platzhalter: +
+
+ {['weight_data', 'nutrition_data', 'activity_data', 'sleep_data', 'vitals_baseline', 'blood_pressure', 'profile_id', 'today'].map(ph => ( + { + const placeholder = `{{${ph}}}` + setTemplate(template + placeholder) + }} + style={{ + padding: '2px 6px', + background: 'var(--surface2)', + borderRadius: 4, + fontSize: 10, + cursor: 'pointer', + border: '1px solid var(--border)' + }} + title="Klicken zum Einfügen" + > + {'{{'}{ph}{'}}'} + + ))} +
)} @@ -508,7 +532,7 @@ export default function UnifiedPromptModal({ prompt, onSave, onClose }) { onChange={e => updateStagePrompt(stage.stage, pIdx, 'template', e.target.value)} rows={3} placeholder="Inline-Template mit {{placeholders}}..." - style={{ fontSize: 12, textAlign: 'left', resize: 'vertical', fontFamily: 'monospace' }} + style={{ width: '100%', fontSize: 12, textAlign: 'left', resize: 'vertical', fontFamily: 'monospace' }} /> )} diff --git a/frontend/src/pages/AdminPromptsPage.jsx b/frontend/src/pages/AdminPromptsPage.jsx index 1427699..dfcd746 100644 --- a/frontend/src/pages/AdminPromptsPage.jsx +++ b/frontend/src/pages/AdminPromptsPage.jsx @@ -227,9 +227,9 @@ export default function AdminPromptsPage() { background: 'var(--surface)', borderRadius: 12, border: '1px solid var(--border)', - overflow: 'hidden' + overflowX: 'auto' }}> - +