refactor: consolidate badge styling to CSS classes
- 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:
1 parent
30df150b6f
commit
baad096ead
4 files changed
+67
-13
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user