fix: prompt editor layout - full-width inputs, left-aligned text (Issue #28)
- 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:
1 parent
c8cf375399
commit
7a8a5aee98
2 files changed
+21
-12
No files matched your search
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user