@@ -53,18 +53,15 @@ export const PromptPopover: Component<PromptPopoverProps> = (props) => {
5353 >
5454 < For each = { props . atFlat . slice ( 0 , 10 ) } >
5555 { ( item ) => {
56- const active = props . atActive === props . atKey ( item )
57- const shared = {
58- "w-full flex items-center gap-x-2 rounded-md px-2 py-0.5" : true ,
59- "bg-surface-raised-base-hover" : active ,
60- }
56+ const key = props . atKey ( item )
6157
6258 if ( item . type === "agent" ) {
6359 return (
6460 < button
65- classList = { shared }
61+ class = "w-full flex items-center gap-x-2 rounded-md px-2 py-0.5"
62+ classList = { { "bg-surface-raised-base-hover" : props . atActive === key } }
6663 onClick = { ( ) => props . onAtSelect ( item ) }
67- onMouseEnter = { ( ) => props . setAtActive ( props . atKey ( item ) ) }
64+ onMouseEnter = { ( ) => props . setAtActive ( key ) }
6865 >
6966 < Icon name = "brain" size = "small" class = "text-icon-info-active shrink-0" />
7067 < span class = "text-14-regular text-text-strong whitespace-nowrap" > @{ item . name } </ span >
@@ -78,9 +75,10 @@ export const PromptPopover: Component<PromptPopoverProps> = (props) => {
7875
7976 return (
8077 < button
81- classList = { shared }
78+ class = "w-full flex items-center gap-x-2 rounded-md px-2 py-0.5"
79+ classList = { { "bg-surface-raised-base-hover" : props . atActive === key } }
8280 onClick = { ( ) => props . onAtSelect ( item ) }
83- onMouseEnter = { ( ) => props . setAtActive ( props . atKey ( item ) ) }
81+ onMouseEnter = { ( ) => props . setAtActive ( key ) }
8482 >
8583 < FileIcon node = { { path : item . path , type : "file" } } class = "shrink-0 size-4" />
8684 < div class = "flex items-center text-14-regular min-w-0" >
0 commit comments