Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/chat/dropdown-radio-item-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function DropdownRadioItemContent({
const normalizedDescription = description?.trim()

return (
<div className="w-full min-w-0 pr-2">
<div className="w-full min-w-0 pr-2" title={label}>
<p className="truncate">{label}</p>
{normalizedDescription ? (
<p className="text-muted-foreground mt-0.5 text-xs leading-snug whitespace-pre-wrap wrap-break-word">
Expand Down
21 changes: 17 additions & 4 deletions src/components/chat/session-config-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function SessionConfigSelector({
<span className="min-w-0 flex-1 truncate font-medium">
{option.name}
</span>
<span className="max-w-[10rem] shrink-0 truncate text-xs text-muted-foreground">
<span
className="max-w-[10rem] shrink-0 truncate text-xs text-muted-foreground"
title={currentLabel}
>
{currentLabel}
</span>
</DropdownMenuSubTrigger>
Expand All @@ -68,6 +71,7 @@ export function SessionConfigSelector({
<DropdownMenuRadioItem
key={`${group.group}-${item.value}`}
value={item.value}
title={item.name}
>
<DropdownRadioItemContent
label={item.name}
Expand All @@ -78,7 +82,11 @@ export function SessionConfigSelector({
</Fragment>
))
: option.kind.options.map((item) => (
<DropdownMenuRadioItem key={item.value} value={item.value}>
<DropdownMenuRadioItem
key={item.value}
value={item.value}
title={item.name}
>
<DropdownRadioItemContent
label={item.name}
description={item.description}
Expand Down Expand Up @@ -112,7 +120,7 @@ export function InlineSessionConfigSelector({
<Button
variant="ghost"
size="xs"
title={option.description ?? option.name}
title={currentLabel}
className="min-w-0 gap-0.5 px-1 text-muted-foreground"
>
<span className="max-w-[10rem] truncate">{currentLabel}</span>
Expand Down Expand Up @@ -142,6 +150,7 @@ export function InlineSessionConfigSelector({
<DropdownMenuRadioItem
key={`${group.group}-${item.value}`}
value={item.value}
title={item.name}
>
<DropdownRadioItemContent
label={item.name}
Expand All @@ -152,7 +161,11 @@ export function InlineSessionConfigSelector({
</Fragment>
))
: option.kind.options.map((item) => (
<DropdownMenuRadioItem key={item.value} value={item.value}>
<DropdownMenuRadioItem
key={item.value}
value={item.value}
title={item.name}
>
<DropdownRadioItemContent
label={item.name}
description={item.description}
Expand Down
Loading