Skip to content

Commit 6285690

Browse files
t3dotggclaude
andcommitted
fix(web): keep the picker rail marker and font preview height from the new design
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 3b0cae8 commit 6285690

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎apps/web/src/components/chat/ModelPickerSidebar.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ function describeUnavailableInstance(entry: ProviderInstanceEntry): string {
2525
return msg ? `${label}: ${kind}. ${msg}` : `${label}: ${kind}.`;
2626
}
2727

28-
const SELECTED_INDICATOR_CLASS =
29-
"pointer-events-none absolute right-1 top-1/2 z-10 h-5 w-0.75 -translate-y-1/2 rounded-full bg-primary";
3028
const BADGE_BASE_CLASS =
3129
"pointer-events-none absolute -right-0.5 top-0.5 z-10 flex size-3.5 items-center justify-center rounded-full bg-transparent shadow-sm ";
3230
const NEW_BADGE_CLASS = `${BADGE_BASE_CLASS} text-update-foreground `;
@@ -92,10 +90,7 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {
9290
{selectedIndicatorTop !== null ? (
9391
<div
9492
data-model-picker-selected-indicator="true"
95-
className={cn(
96-
SELECTED_INDICATOR_CLASS,
97-
"right-0 translate-y-0 transition-[top] duration-200 ease-out",
98-
)}
93+
className="pointer-events-none absolute right-1 z-10 h-5 w-0.75 rounded-full bg-primary transition-[top] duration-200 ease-out"
9994
style={{ top: selectedIndicatorTop }}
10095
/>
10196
) : null}

‎apps/web/src/components/settings/SettingsFontPreviews.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function PromptFontPreview() {
4343
skills={PREVIEW_SKILLS}
4444
disabled={false}
4545
placeholder={DEFAULT_COMPOSER_PLACEHOLDER}
46-
className="max-h-42 min-h-14"
46+
className="max-h-42"
4747
onChange={onChange}
4848
onPaste={noop}
4949
/>

0 commit comments

Comments
 (0)