Skip to content

Commit 9f7008f

Browse files
minor css changes
1 parent b572696 commit 9f7008f

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

components/Listeners/SubscriptionsListener.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { config } from '@/config';
33
import {
44
DailyEventObjectParticipant,
55
DailyParticipant,
6+
DailyParticipantUpdateOptions,
67
} from '@daily-co/daily-js';
78
import {
89
useDaily,
@@ -19,7 +20,7 @@ export function SubscriptionsListener() {
1920
if (!daily) return;
2021

2122
const updateParticipants: {
22-
[key: string]: { setSubscribedTracks: boolean | 'staged' };
23+
[key: string]: DailyParticipantUpdateOptions;
2324
} = {};
2425

2526
events.forEach((event) => {

components/Room/Stage/Participants.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export function Participants({ participantIds }: Props) {
2424
if (participantIds.length === 0) {
2525
return (
2626
<div className="flex items-center justify-center">
27-
<EmptyState icon="people" title="No participants in the waiting list" />
27+
<EmptyState
28+
className="mt-1"
29+
icon="people"
30+
title="No participants in the waiting list"
31+
/>
2832
</div>
2933
);
3034
}
@@ -50,7 +54,6 @@ export function Participants({ participantIds }: Props) {
5054
>
5155
<Tile
5256
sessionId={participantIds[virtualColumn.index]}
53-
noVideoTileColor="bg-background"
5457
showMenu={isOwner}
5558
/>
5659
</div>

components/Room/Stage/TabHeader.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ interface Props {
1111

1212
export function TabHeader({ name, value, count, active }: Props) {
1313
return (
14-
<TabsTrigger value={value} className="w-20 rounded-xl py-2">
14+
<TabsTrigger
15+
value={value}
16+
className="w-20 py-2 data-[state=active]:bg-muted data-[state=active]:text-foreground"
17+
>
1518
<div className="flex flex-col items-center justify-center gap-2">
1619
<Badge variant={active ? 'default' : 'outline'}>{count}</Badge>
1720
{name}

components/Room/Stage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function Stage() {
2020
orientation="vertical"
2121
value={tab}
2222
onValueChange={setTab}
23-
className="min-h-40 h-40 border-t bg-muted px-2"
23+
className="min-h-40 h-40 border-t px-2"
2424
>
2525
<div className="h-40 max-h-40 w-full overflow-hidden">
2626
<div className="flex h-full items-center gap-4">

components/Room/Tile/NoVideoTile.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { useMemo } from 'react';
22
import { useParticipantProperty } from '@daily-co/daily-react';
33

4-
export function NoVideoTile({
5-
sessionId,
6-
}: {
7-
sessionId: string;
8-
bgColor?: string;
9-
}) {
4+
export function NoVideoTile({ sessionId }: { sessionId: string }) {
105
const [userName, isLocal, participantType] = useParticipantProperty(
116
sessionId,
127
['user_name', 'local', 'participantType'],

components/Room/Tile/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const TileMenu = dynamic(() =>
1515

1616
interface Props extends React.HTMLAttributes<HTMLDivElement> {
1717
sessionId: string;
18-
noVideoTileColor?: string;
1918
showMenu?: boolean;
2019
aspectRatio?: number;
2120
videoFit?: 'contain' | 'cover';
@@ -24,7 +23,6 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
2423
function TileComponent({
2524
sessionId,
2625
className,
27-
noVideoTileColor = 'bg-muted',
2826
showMenu = false,
2927
aspectRatio = DESKTOP_ASPECT_RATIO,
3028
videoFit = 'contain',
@@ -39,11 +37,11 @@ function TileComponent({
3937

4038
return (
4139
<AspectRatio
42-
className={cn('group relative rounded-md', noVideoTileColor, className)}
40+
className={cn('group relative rounded-md', className)}
4341
ratio={aspectRatio}
4442
>
4543
{state === 'off' ? (
46-
<NoVideoTile sessionId={sessionId} bgColor={noVideoTileColor} />
44+
<NoVideoTile sessionId={sessionId} />
4745
) : (
4846
<>
4947
<DailyVideo

0 commit comments

Comments
 (0)