Skip to content

Commit

Permalink
add name connect status color
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Feb 29, 2024
1 parent d819929 commit 8b1b434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/player/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Detail(props: { streamId: string, userStatus: UserStatus
const { streamId, userStatus, restart } = props
return (
<details className='text-white mx-2 text-sm font-border' style={{ position: 'absolute' }}>
<summary className='text-center'>{userStatus.name}</summary>
<summary className='text-center rounded-lg px-xs' style={{ backgroundColor: userStatus.state === 'connected' ? 'rgba(16, 185, 129, 0.6)' : 'rgba(244, 63, 94, 0.6)' }}>{userStatus.name}</summary>
<center>
<div className='flex flex-row flex-wrap justify-around'>
<p>name: <code>{userStatus.name}</code></p>
Expand Down

0 comments on commit 8b1b434

Please sign in to comment.