refactor: make UsageBadge more subtle and better positioned
Deploy Development / deploy (push) Successful in 36s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

- Smaller font (0.65rem), more spacing (10px margin)
- Reduced opacity (0.6), hover effect (0.9)
- OK status now gray instead of green (less prominent)
- Position: right-aligned in headings (flex space-between)
- Buttons: badge on right side of main text, description below
- Much more discreet overall appearance

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-21 06:50:12 +01:00
1 parent c59c71a1c7
commit 30df150b6f
4 files changed
+40 -26

No files matched your search

+12 -8
View File
@@ -379,17 +379,21 @@ export default function SettingsPage() {
</div>
)}
{canExport && <>
<button className="btn btn-primary btn-full"
<button className="btn btn-primary btn-full" style={{position:'relative'}}
onClick={()=>api.exportZip()}>
<Download size={14}/> ZIP exportieren
{exportUsage && <UsageBadge {...exportUsage} />}
<span style={{fontSize:11,opacity:0.8,marginLeft:6}}>— je eine CSV pro Kategorie</span>
<div style={{display:'flex',alignItems:'center',justifyContent:'space-between',width:'100%'}}>
<span><Download size={14}/> ZIP exportieren</span>
{exportUsage && <UsageBadge {...exportUsage} />}
</div>
<span style={{fontSize:11,opacity:0.8,display:'block',marginTop:2}}>je eine CSV pro Kategorie</span>
</button>
<button className="btn btn-secondary btn-full"
<button className="btn btn-secondary btn-full" style={{position:'relative'}}
onClick={()=>api.exportJson()}>
<Download size={14}/> JSON exportieren
{exportUsage && <UsageBadge {...exportUsage} />}
<span style={{fontSize:11,opacity:0.8,marginLeft:6}}>— maschinenlesbar, alles in einer Datei</span>
<div style={{display:'flex',alignItems:'center',justifyContent:'space-between',width:'100%'}}>
<span><Download size={14}/> JSON exportieren</span>
{exportUsage && <UsageBadge {...exportUsage} />}
</div>
<span style={{fontSize:11,opacity:0.8,display:'block',marginTop:2}}>maschinenlesbar, alles in einer Datei</span>
</button>
</>}
</div>