File tree Expand file tree Collapse file tree 2 files changed +35
-17
lines changed
setup/agents/components/agent Expand file tree Collapse file tree 2 files changed +35
-17
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ export function ChatAgentSelector({
305305 < div
306306 key = { agent . agent_id }
307307 className = { `
308- flex items-start gap-3 px-3.5 py-3 text-sm
308+ flex items-start gap-3 px-3.5 py-3 text-sm h-[60px]
309309 transition-all duration-150 ease-in-out
310310 ${
311311 agent . is_available
@@ -351,27 +351,37 @@ export function ChatAgentSelector({
351351 : "text-slate-400"
352352 } `}
353353 >
354- { agent . display_name && (
355- < span className = "text-sm leading-none" >
356- { agent . display_name }
354+ < div className = "flex items-center" >
355+ { agent . display_name && (
356+ < span className = "text-sm leading-none" >
357+ { agent . display_name }
358+ </ span >
359+ ) }
360+ < span
361+ className = { `text-sm leading-none align-baseline ${
362+ agent . display_name ? "ml-2" : "text-sm"
363+ } `}
364+ >
365+ { agent . name }
357366 </ span >
358- ) }
359- < span
360- className = { `text-sm leading-none align-baseline ${
361- agent . display_name ? "ml-2" : "text-sm"
362- } `}
363- >
364- { agent . name }
365- </ span >
367+ </ div >
366368 </ div >
367369 < div
368- className = { `text-xs mt-1 leading-relaxed ${
370+ className = { `text-xs mt-1 leading-relaxed overflow-hidden ${
369371 agent . is_available
370372 ? selectedAgentId === agent . agent_id
371373 ? "text-blue-500"
372374 : "text-slate-500"
373375 : "text-slate-300"
374376 } `}
377+ style = { {
378+ display : '-webkit-box' ,
379+ WebkitLineClamp : 2 ,
380+ WebkitBoxOrient : 'vertical' ,
381+ overflow : 'hidden' ,
382+ textOverflow : 'ellipsis' ,
383+ maxHeight : '2rem'
384+ } }
375385 >
376386 { agent . description }
377387 { ! agent . is_available && (
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ export default function SubAgentPool({
182182 < Tooltip key = { agent . id } >
183183 < TooltipTrigger asChild >
184184 < div
185- className = { `py-2 px-2 flex flex-col justify-center transition-colors border-t border-gray-200 ${
185+ className = { `py-3 px-2 flex flex-col justify-center transition-colors border-t border-gray-200 h-[80px] ${
186186 isCurrentlyEditing
187187 ? "bg-blue-50 border-l-4 border-l-blue-500" // Highlight editing agent, add left vertical line
188188 : ! isAvailable
@@ -214,7 +214,7 @@ export default function SubAgentPool({
214214 ! isAvailable ? "text-gray-500" : ""
215215 } `}
216216 >
217- < span className = "flex items-baseline " >
217+ < div className = "flex items-center " >
218218 { agent . display_name && (
219219 < span className = "text-base leading-normal" >
220220 { agent . display_name }
@@ -229,12 +229,20 @@ export default function SubAgentPool({
229229 >
230230 { agent . name }
231231 </ span >
232- </ span >
232+ </ div >
233233 </ div >
234234 < div
235- className = { `text-xs line-clamp-2 transition-colors duration-300 ${
235+ className = { `text-xs line-clamp-2 transition-colors duration-300 leading-[1.25] overflow-hidden ${
236236 ! isAvailable ? "text-gray-400" : "text-gray-500"
237237 } `}
238+ style = { {
239+ display : '-webkit-box' ,
240+ WebkitLineClamp : 2 ,
241+ WebkitBoxOrient : 'vertical' ,
242+ overflow : 'hidden' ,
243+ textOverflow : 'ellipsis' ,
244+ maxHeight : '2.5rem'
245+ } }
238246 >
239247 { agent . description }
240248 </ div >
You can’t perform that action at this time.
0 commit comments