Skip to content
Extraits de code Groupes Projets

Fix/121 user list responsiveness

Tous les fils de conversation ont été résolus !
Fusionnées Dave a demandé de fusionner fix/121-user-list-responsiveness vers dev
Tous les fils de conversation ont été résolus !
1 fichier
+ 7
8
Comparer les modifications
  • Côte à côte
  • En ligne
Brieuc Dubois
Dernier commentaire posté par Dave
@@ -21,11 +21,12 @@
isShortScreen = typeof window !== 'undefined' && window.innerWidth < 1024;
function handleResize() {
const wasShortScreen = isShortScreen;
isShortScreen = window.innerWidth < 1024;
if (!isShortScreen && wasShortScreen) {
showParticipants = true;
const newShortScreen = window.innerWidth < 1024;
if (newShortScreen !== isShortScreen) {
isShortScreen = newShortScreen;
if (!isShortScreen) {
showParticipants = true;
}
}
}
@@ -52,9 +53,7 @@
<div
class="bg-white border rounded-lg shadow-md p-6 mx-4 my-2 h-fit w-full max-w-md text-base lg:text-lg"
class:!hidden={typeof window !== 'undefined' &&
!showParticipants &&
!window.matchMedia('(min-width: 1024px)').matches}
class:hidden={isShortScreen && !showParticipants}
>
<h2 class="text-xl truncate font-semibold text-gray-700 text-center mb-4">
{$t('utils.words.participants')}
Chargement en cours