fix(ui): Add scrollable container for contacts lists

Fix scrolling issue where contact lists with many items (263/350)
couldn't be scrolled on desktop or mobile devices.

Changes:
- Add max-height: 600px to #existingList and #pendingList
- Enable vertical scrolling with overflow-y: auto
- Add smooth scrolling for mobile with -webkit-overflow-scrolling
- Style custom scrollbar (8px, rounded, gray) for better UX

Tested: Lists now show ~8-10 contact cards at once with scrollbar
appearing when needed. Works with mouse wheel and touch gestures.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2025-12-29 12:18:43 +01:00
parent 8b709b9136
commit 7556136b82
+33
View File
@@ -129,6 +129,39 @@
flex: 1;
min-width: 150px;
}
/* Scrollable contacts lists */
#existingList,
#pendingList {
max-height: 600px;
overflow-y: auto;
overflow-x: hidden;
/* Smooth scrolling on mobile */
-webkit-overflow-scrolling: touch;
}
/* Custom scrollbar styling (optional, for better UX) */
#existingList::-webkit-scrollbar,
#pendingList::-webkit-scrollbar {
width: 8px;
}
#existingList::-webkit-scrollbar-track,
#pendingList::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
#existingList::-webkit-scrollbar-thumb,
#pendingList::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
#existingList::-webkit-scrollbar-thumb:hover,
#pendingList::-webkit-scrollbar-thumb:hover {
background: #555;
}
</style>
{% endblock %}