Skip to content

Commit

Permalink
Update input.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinh8124 committed Aug 20, 2024
1 parent 2b89a46 commit 99b2ecf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion react-app/src/components/Inputs/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { InputProps } from "shared-types";
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, icon, iconRight, ...props }, ref) => {
return (
<div className="relative w-fit">
<div
className={cn(
"relative",
icon && !className.includes("w-full") && "w-fit",
)}
>
{icon && (
<span
className={`absolute inset-y-0 border-[#212121] border flex items-center px-3 bg-[#f0f0f0] ${
Expand Down

0 comments on commit 99b2ecf

Please sign in to comment.