refactor: enhance layout and responsiveness across multiple pages
Deploy Development / deploy (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 40s

- Updated app.css to improve responsive design, introducing new classes for consistent page widths and grid layouts.
- Refactored various page components to utilize the new layout classes, ensuring better adaptability on different screen sizes.
- Adjusted padding and margin properties for improved visual consistency and user experience across the application.
This commit is contained in:
Lars committed 2026-05-05 12:39:15 +02:00
1 parent b1af59b134
commit 83ee300192
16 files changed
+130 -58

No files matched your search

+3 -5
View File
@@ -30,7 +30,7 @@ function Dashboard() {
if (loading) {
return (
<div style={{ padding: '2rem', textAlign: 'center' }}>
<div className="app-page" style={{ padding: '2rem 0', textAlign: 'center' }}>
<div className="spinner"></div>
<p>Laden...</p>
</div>
@@ -38,8 +38,7 @@ function Dashboard() {
}
return (
<div style={{ minHeight: '100vh', background: 'var(--bg)', padding: '2rem' }}>
<div style={{ maxWidth: '1200px', margin: '0 auto' }}>
<div className="app-page app-page--constrained-lg">
<h1>Dashboard</h1>
<p style={{ color: 'var(--text2)', marginTop: '0.5rem' }}>
Willkommen, {user?.name || user?.email}!
@@ -56,7 +55,7 @@ function Dashboard() {
{/* Status Grid */}
<div style={{
display: 'grid',
gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 260px), 1fr))',
gap: '1rem',
marginBottom: '1.5rem'
}}>
@@ -122,7 +121,6 @@ function Dashboard() {
</div>
</div>
)}
</div>
</div>
)
}