fix: prompt editor layout - full-width inputs, left-aligned text (Issue #28)
Deploy Development / deploy (push) Successful in 50s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s

- PromptEditModal: all inputs/textareas now full-width
- Labels positioned above fields (not inline)
- Text left-aligned (was right-aligned)
- Added resize:vertical for textareas
- Side-by-side comparison with word-wrap
- Follows app-wide form design pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-24 20:53:15 +01:00
1 parent c8cf375399
commit 7a8a5aee98
2 files changed
+21 -12

No files matched your search

+4 -3
View File
@@ -79,7 +79,7 @@ export default function PromptGenerator({ onGenerated, onClose }) {
{/* Step 1: Goal */}
<div style={{marginBottom:24}}>
<label className="form-label">
<label className="form-label" style={{display:'block', marginBottom:6}}>
1️⃣ Was möchtest du analysieren?
</label>
<textarea
@@ -88,6 +88,7 @@ export default function PromptGenerator({ onGenerated, onClose }) {
onChange={e => setGoal(e.target.value)}
rows={3}
placeholder="Beispiel: Ich möchte wissen ob meine Proteinzufuhr ausreichend ist für Muskelaufbau und wie ich sie optimieren kann."
style={{width:'100%', textAlign:'left', resize:'vertical'}}
/>
</div>
@@ -145,7 +146,7 @@ export default function PromptGenerator({ onGenerated, onClose }) {
{/* Step 3: Desired Format */}
<div style={{marginBottom:24}}>
<label className="form-label">
<label className="form-label" style={{display:'block', marginBottom:6}}>
3️⃣ Gewünschtes Antwort-Format (optional)
</label>
<textarea
@@ -154,7 +155,7 @@ export default function PromptGenerator({ onGenerated, onClose }) {
onChange={e => setExampleOutput(e.target.value)}
rows={4}
placeholder={'Beispiel:\n## Analyse\n[Bewertung]\n\n## Empfehlungen\n- Punkt 1\n- Punkt 2'}
style={{fontFamily:'monospace', fontSize:12}}
style={{width:'100%', textAlign:'left', fontFamily:'monospace', fontSize:12, resize:'vertical'}}
/>
</div>