mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
* chore: remove dead code and unused exports * fix: preserve model form during config refresh Signed-off-by: mehmet turac <mehmetturac@gmail.com> * loop: model-select-fix completed after 11 iterations * fix(frontend): show provider prefix for duplicate models in quick select dropdown When the same model exists under multiple providers, show the provider name for both entries so users can distinguish them. Detects duplicates by modelID across all favorites and recents. * refactor(frontend): replace useTallScrollContent with scroll visibility hook * fix: harden mirror push rollback * Remove Load button from skill cards, clicking card loads skill * feat(backend): add plugin installation support and schema updates * refactor(frontend): remove unused useHeaderScrollVisibility hook * refactor(frontend): replace model dropdown with bottom sheet selector Replace DropdownMenu-based ModelQuickSelect with a bottom sheet implementation featuring favorites, recents, provider browsing, and search. Remove onShowModelsDialog prop from PromptInput and SessionDetail, using data attribute trigger instead. Fix ZodIssueCode deprecation, input text color, and portal rendering for bottom sheet. * fix(frontend): simplify session model restore and fix mobile swipe reset * loop: single-source-models completed after 10 iterations * refactor(frontend): add desktop sidebar layout to model quick select * refactor(frontend): improve model selector with connected providers, favorites, and recent management * fix(frontend): constrain model name width to prevent overflow in prompt input * fix(frontend): adjust padding and styling in model quick select * fix(frontend): add optimistic removal with rollback for recent models ---------
23 lines
742 B
TypeScript
23 lines
742 B
TypeScript
import * as React from "react"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
|
|
({ className, type, ...props }, ref) => {
|
|
return (
|
|
<input
|
|
type={type}
|
|
className={cn(
|
|
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-[16px] text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
className
|
|
)}
|
|
ref={ref}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
)
|
|
Input.displayName = "Input"
|
|
|
|
export { Input }
|