File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useHypr } from "@/contexts";
6
6
import { commands as dbCommands } from "@hypr/plugin-db" ;
7
7
import { Button } from "@hypr/ui/components/ui/button" ;
8
8
import { Popover , PopoverContent , PopoverTrigger } from "@hypr/ui/components/ui/popover" ;
9
+ import { cn } from "@hypr/ui/lib/utils" ;
9
10
import { useSession } from "@hypr/utils/contexts" ;
10
11
import { formatRelativeWithDay } from "@hypr/utils/datetime" ;
11
12
@@ -30,12 +31,18 @@ export function EventChip({ sessionId }: EventChipProps) {
30
31
return (
31
32
< Popover >
32
33
< PopoverTrigger disabled = { ! event . data || onboardingSessionId === sessionId } >
33
- < div className = "flex flex-row items-center gap-2 rounded-md px-2 py-1.5 hover:bg-neutral-100" >
34
+ < div
35
+ className = { cn (
36
+ "flex flex-row items-center gap-2 rounded-md px-2 py-1.5 hover:bg-neutral-100" ,
37
+ ! event . data && "opacity-50 cursor-not-allowed" ,
38
+ onboardingSessionId === sessionId && "opacity-50 cursor-not-allowed" ,
39
+ ) }
40
+ >
34
41
< CalendarIcon size = { 14 } />
35
42
< p className = "text-xs" > { formatRelativeWithDay ( date ) } </ p >
36
43
</ div >
37
44
</ PopoverTrigger >
38
- < PopoverContent align = "start" className = "shadow-lg" >
45
+ < PopoverContent align = "start" className = "shadow-lg w-72 " >
39
46
< div className = "flex flex-col gap-2" >
40
47
< div className = "font-semibold" > { event . data ?. name } </ div >
41
48
< div className = "text-sm text-neutral-600" > { event . data ?. note } </ div >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export function ParticipantsChip({ sessionId }: ParticipantsChipProps) {
54
54
</ div >
55
55
</ PopoverTrigger >
56
56
57
- < PopoverContent className = "shadow-lg" align = "start" >
57
+ < PopoverContent className = "shadow-lg w-80 " align = "start" >
58
58
< ParticipantsList sessionId = { sessionId } />
59
59
</ PopoverContent >
60
60
</ Popover >
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function ParticipantsList({ sessionId }: ParticipantsListProps) {
48
48
}
49
49
50
50
return (
51
- < div className = "flex flex-col gap-3 max-w-[450px] " >
51
+ < div className = "flex flex-col gap-3" >
52
52
< div className = "text-sm font-medium text-neutral-700" > Participants</ div >
53
53
54
54
< div className = "flex flex-col gap-4 max-h-[40vh] overflow-y-auto custom-scrollbar pr-1" >
You can’t perform that action at this time.
0 commit comments