refactor: make UsageBadge more subtle and better positioned
- 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:
1 parent
c59c71a1c7
commit
30df150b6f
4 files changed
+40
-26
No files matched your search
@@ -240,8 +240,8 @@ export default function Analysis() {
|
||||
<div className="card" style={{marginBottom:16,borderColor:'var(--accent)',borderWidth:2}}>
|
||||
<div style={{display:'flex',alignItems:'flex-start',gap:12}}>
|
||||
<div style={{flex:1}}>
|
||||
<div style={{fontWeight:700,fontSize:15,color:'var(--accent)'}}>
|
||||
🔬 Mehrstufige Gesamtanalyse
|
||||
<div style={{fontWeight:700,fontSize:15,color:'var(--accent)',display:'flex',alignItems:'center',justifyContent:'space-between'}}>
|
||||
<span>🔬 Mehrstufige Gesamtanalyse</span>
|
||||
{aiUsage && <UsageBadge {...aiUsage} />}
|
||||
</div>
|
||||
<div style={{fontSize:12,color:'var(--text2)',marginTop:3,lineHeight:1.5}}>
|
||||
@@ -295,8 +295,8 @@ export default function Analysis() {
|
||||
<div key={p.id} className="card section-gap">
|
||||
<div style={{display:'flex',alignItems:'flex-start',gap:12}}>
|
||||
<div style={{flex:1}}>
|
||||
<div style={{fontWeight:600,fontSize:15}}>
|
||||
{SLUG_LABELS[p.slug]||p.name}
|
||||
<div style={{fontWeight:600,fontSize:15,display:'flex',alignItems:'center',justifyContent:'space-between'}}>
|
||||
<span>{SLUG_LABELS[p.slug]||p.name}</span>
|
||||
{aiUsage && <UsageBadge {...aiUsage} />}
|
||||
</div>
|
||||
{p.description && <div style={{fontSize:12,color:'var(--text3)',marginTop:2}}>{p.description}</div>}
|
||||
|
||||
Reference in new issue
Block a user