Open source video conferencing app powered by LiveKit. Built with Django and React.
🚸(frontend) visually differentiate user's reactions from others
lebaudantoine2e8407ac7c84
diff --git a/src/frontend/src/features/rooms/livekit/components/ReactionPortal.tsx b/src/frontend/src/features/rooms/livekit/components/ReactionPortal.tsxindex 84671c61..ea9a7abf 100644--- a/src/frontend/src/features/rooms/livekit/components/ReactionPortal.tsx+++ b/src/frontend/src/features/rooms/livekit/components/ReactionPortal.tsx@@ -15,6 +15,7 @@ export const INITIAL_POSITION = 200interface FloatingReactionProps {emoji: stringname?: string+ isLocal?: booleanspeed?: numberscale?: number}@@ -22,6 +23,7 @@ interface FloatingReactionProps {export function FloatingReaction({emoji,name,+ isLocal = false,speed = 1,scale = 1,}: FloatingReactionProps) {@@ -86,8 +88,9 @@ export function FloatingReaction({<Textvariant="sm"className={css({- backgroundColor: 'primaryDark.100',- color: 'white',+ backgroundColor: isLocal ? 'primary.100' : 'primaryDark.100',+ color: isLocal ? 'black' : 'white',+ fontWeight: 500,textAlign: 'center',borderRadius: '20px',paddingX: '0.5rem',@@ -130,6 +133,7 @@ export function ReactionPortal({speed={speed}scale={scale}name={participant?.isLocal ? t('you') : participant.name}+ isLocal={participant?.isLocal}/></div>,document.body