fix: improve cospend mobile layout and fix settlement rounding

- Fix settlement amounts rounding to 2 decimal places in debts API
- Improve dashboard mobile responsiveness with tighter gaps and padding
- Optimize settlement layout to stay horizontal on mobile with smaller profile pictures
- Fix payments page mobile layout with better breakpoints and reduced min-width
- Enhance modal behavior on mobile devices with proper responsive design
- Reduce container max-width from 1400px to 1200px for better mobile fitting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-17 20:16:51 +02:00
parent 579cbd1bc9
commit 766a384df8
4 changed files with 155 additions and 38 deletions

View File

@@ -129,26 +129,53 @@
}
@media (max-width: 768px) {
.layout-container.has-modal .main-content {
margin-right: 0;
}
.side-panel {
position: fixed;
top: 4rem;
left: 0;
right: 0;
width: 100%;
height: calc(100vh - 4rem);
transform: translateY(100%);
}
.layout-container.has-modal .side-panel {
transform: translateY(0);
}
}
@media (max-width: 480px) {
.layout-container.has-modal {
flex-direction: column;
}
.layout-container.has-modal .main-content {
flex: none;
height: 50vh;
height: 40vh;
overflow-y: auto;
margin-right: 0;
}
.side-panel {
flex: none;
height: 50vh;
height: 60vh;
min-width: unset;
max-width: unset;
width: 100%;
border-left: none;
border-top: 1px solid #dee2e6;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
top: auto;
bottom: 0;
transform: translateY(100%);
}
.layout-container.has-modal .side-panel {
transform: translateY(0);
}
}