From be80e369394f5d0cb771b51669686f2bc916e543 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 22 Sep 2026 12:22:13 -0700 Subject: [PATCH] refactor(web): add SidebarInput (#13028) Co-authored-by: Claude Fable 5 --- .../components/settings/SettingsSidebarNav.tsx | 7 +++---- .../components/sidebar/SidebarThreadHeader.tsx | 8 +++----- apps/web/src/components/ui/sidebar.tsx | 16 ++++++++++++++++ scripts/lint-restyle-ceiling.ts | 2 +- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/settings/SettingsSidebarNav.tsx b/apps/web/src/components/settings/SettingsSidebarNav.tsx index ffddb278b6cf6a54d45ee8300cbc746235346b17..cb466d3bb9fc5623ee1c4ee29cce39822dc4ca83 100644 --- a/apps/web/src/components/settings/SettingsSidebarNav.tsx +++ b/apps/web/src/components/settings/SettingsSidebarNav.tsx @@ -27,7 +27,6 @@ import { import { useLocation, useNavigate } from "@tanstack/react-router"; import { Button } from "../ui/button"; -import { Input } from "../ui/input"; import { Kbd } from "../ui/kbd"; import { SidebarContent, @@ -37,6 +36,7 @@ import { SidebarMenuButton, SidebarMenuItem, useSidebar, + SidebarInput, } from "../ui/sidebar"; import { SidebarUtilityMenu } from "../sidebar/SidebarChrome"; import { scrollToSettingsTarget } from "./settingsLayout"; @@ -237,10 +237,9 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
- { @@ -259,7 +258,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) { ? `settings-search-result-${results[activeResultIndex].id}` : undefined } - className="min-w-0 flex-1 [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:p-0 [&_[data-slot=input]]:leading-normal [&_[data-slot=input]]:text-sm [&_[data-slot=input]]:font-medium [&_[data-slot=input]]:text-sidebar-foreground [&_[data-slot=input]]:placeholder:text-sidebar-muted-foreground" + className="min-w-0 flex-1" /> {isSearching ? (