fix: add dashboard weight enforcement and fix hover tooltips
- Dashboard QuickWeight: Feature limit enforcement hinzugefügt - Hover-Tooltip Fix: Button in div wrapper (disabled buttons zeigen keine nativen tooltips) - Error handling für Dashboard weight input - Konsistentes UX über alle Eingabe-Screens Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
0f019f87a4
commit
d13c2c7e25
4 files changed
+94
-39
No files matched your search
@@ -130,18 +130,22 @@ export default function CircumScreen() {
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
<button
|
||||
className="btn btn-primary btn-full"
|
||||
style={{marginTop:8, cursor: (circumUsage && !circumUsage.allowed) ? 'not-allowed' : 'pointer'}}
|
||||
onClick={handleSave}
|
||||
disabled={saving || (circumUsage && !circumUsage.allowed)}
|
||||
<div
|
||||
title={circumUsage && !circumUsage.allowed ? `Limit erreicht (${circumUsage.used}/${circumUsage.limit}). Kontaktiere den Admin oder warte bis zum nächsten Reset.` : ''}
|
||||
style={{display:'inline-block',width:'100%',marginTop:8}}
|
||||
>
|
||||
{saved ? <><Check size={14}/> Gespeichert!</>
|
||||
: saving ? '…'
|
||||
: (circumUsage && !circumUsage.allowed) ? '🔒 Limit erreicht'
|
||||
: 'Speichern'}
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-primary btn-full"
|
||||
style={{cursor: (circumUsage && !circumUsage.allowed) ? 'not-allowed' : 'pointer'}}
|
||||
onClick={handleSave}
|
||||
disabled={saving || (circumUsage && !circumUsage.allowed)}
|
||||
>
|
||||
{saved ? <><Check size={14}/> Gespeichert!</>
|
||||
: saving ? '…'
|
||||
: (circumUsage && !circumUsage.allowed) ? '🔒 Limit erreicht'
|
||||
: 'Speichern'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Liste */}
|
||||
|
||||
Reference in new issue
Block a user