fix: augmentation hauteur UserList et amélioration scroll

CORRECTIONS :
- Hauteur max passée de 180px à 300px (desktop)
- Hauteur max passée de 150px à 250px (mobile)
- Ajout min-height: 100px pour garantir visibilité

AMÉLIORATIONS SCROLL :
- Scrollbar personnalisée fine et discrète
- Support -webkit-overflow-scrolling: touch (iOS)
- Scrollbar visible au hover (desktop)
- Gap réduit entre items pour densité optimale

RESPONSIVE :
- Portrait mobile : 200px max
- Paysage : 120px max (priorité au bouton PTT)
- Padding réduit pour maximiser l'espace visible

Résultat : Affichage de 4-5 utilisateurs au lieu de 1-2

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-05-23 09:57:00 +02:00
parent 49df6bd44c
commit ed6d2e763d
+45 -3
View File
@@ -3,8 +3,32 @@
.user-list { .user-list {
background: var(--color-surface); background: var(--color-surface);
border-bottom: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
max-height: 180px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
/* Améliorer le scroll sur mobile */
-webkit-overflow-scrolling: touch;
/* Style de scrollbar personnalisé */
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
/* Scrollbar personnalisée (webkit) */
.user-list::-webkit-scrollbar {
width: 6px;
}
.user-list::-webkit-scrollbar-track {
background: transparent;
}
.user-list::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 3px;
}
.user-list::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
} }
.user-list.empty { .user-list.empty {
@@ -36,7 +60,10 @@
} }
.user-list-items { .user-list-items {
padding: var(--spacing-sm); padding: var(--spacing-xs) var(--spacing-sm);
display: flex;
flex-direction: column;
gap: 4px;
} }
/* Item utilisateur */ /* Item utilisateur */
@@ -131,7 +158,7 @@
/* Responsive */ /* Responsive */
@media (max-width: 640px) { @media (max-width: 640px) {
.user-list { .user-list {
max-height: 150px; max-height: 250px;
} }
.user-avatar { .user-avatar {
@@ -148,3 +175,18 @@
font-size: 0.75rem; font-size: 0.75rem;
} }
} }
/* Portrait mobile - encore plus d'espace */
@media (max-width: 640px) and (orientation: portrait) {
.user-list {
max-height: 200px;
min-height: 100px;
}
}
/* Paysage - réduire un peu pour laisser place au PTT */
@media (max-height: 500px) and (orientation: landscape) {
.user-list {
max-height: 120px;
}
}