Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions webview-ui/src/components/settings/ModelPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const ModelPicker = ({
aria-expanded={open}
className="w-full justify-between"
data-testid="model-picker-button">
<div>{selectedModelId ?? t("settings:common.select")}</div>
<div className="truncate">{selectedModelId ?? t("settings:common.select")}</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice we're using a <div> here but a <span> on line 197 for the same truncation purpose. Is this intentional? For consistency and semantic correctness (since this is inline text content), would it make sense to use <span> for both?

<ChevronsUpDown className="opacity-50" />
</Button>
</PopoverTrigger>
Expand Down Expand Up @@ -194,7 +194,7 @@ export const ModelPicker = ({
value={model}
onSelect={onSelect}
data-testid={`model-option-${model}`}>
{model}
<span className="truncate">{model}</span>
<Check
className={cn(
"size-4 p-0.5 ml-auto",
Expand Down
Loading