refactor: consolidate badge styling to CSS classes
Deploy Development / deploy (push) Successful in 36s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

- Move all positioning logic from inline styles to CSS
- New classes: .badge-container-right, .badge-button-layout
- All badge styling now in UsageBadge.css (single source)
- Easier to maintain and adjust globally
- Mobile responsive adjustments in one place

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-21 06:54:45 +01:00
1 parent 30df150b6f
commit baad096ead
4 files changed
+67 -13

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ export default function WeightScreen() {
{/* Eingabe */}
<div className="card section-gap">
<div className="card-title" style={{display:'flex',alignItems:'center',justifyContent:'space-between'}}>
<div className="card-title badge-container-right">
<span>Eintrag hinzufügen</span>
{weightUsage && <UsageBadge {...weightUsage} />}
</div>