refactor: enhance layout and responsiveness across multiple pages
- 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:
1 parent
b1af59b134
commit
83ee300192
16 files changed
+130
-58
No files matched your search
@@ -542,7 +542,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div style={{ padding: '2rem', textAlign: 'center' }}>
|
||||
<div className="app-page" style={{ padding: '2rem 0', textAlign: 'center' }}>
|
||||
<div className="spinner" />
|
||||
<p>Laden…</p>
|
||||
</div>
|
||||
@@ -550,7 +550,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ padding: '2rem' }}>
|
||||
<div className="app-page">
|
||||
<div className="framework-edit">
|
||||
<p style={{ marginBottom: '0.75rem' }}>
|
||||
<Link to="/planning/framework-programs" style={{ color: 'var(--accent-dark)' }}>
|
||||
@@ -672,7 +672,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="form-row" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '12px' }}>
|
||||
<div className="responsive-grid-2" style={{ marginBottom: '16px' }}>
|
||||
<div>
|
||||
<label className="form-label">Zeitraum von</label>
|
||||
<input
|
||||
@@ -693,7 +693,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-row" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '12px' }}>
|
||||
<div className="responsive-grid-2" style={{ marginBottom: '16px' }}>
|
||||
<div>
|
||||
<label className="form-label">Sichtbarkeit</label>
|
||||
<select
|
||||
@@ -736,6 +736,8 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
gap: '8px',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
marginBottom: '0.75rem',
|
||||
@@ -817,7 +819,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
</div>
|
||||
|
||||
<div className="card framework-plan-slots" style={{ marginBottom: '1.5rem' }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '0.75rem' }}>
|
||||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '8px', justifyContent: 'space-between', alignItems: 'center', marginBottom: '0.75rem' }}>
|
||||
<h3 className="card-title" style={{ marginBottom: 0 }}>
|
||||
Session‑Slots & Übungen
|
||||
</h3>
|
||||
|
||||
Reference in new issue
Block a user