Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
fix: currency input style
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen committed Sep 27, 2023
1 parent d4cfbff commit 499b23b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ui/src/components/currency-input/currency-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const CurrencyInput = React.forwardRef<HTMLInputElement, CurrencyInputProps>(
}
}}
className={clx(
"cursor-text overflow-hidden",
"w-full cursor-text justify-between overflow-hidden",
currencyInputVariants({ size }),
{
"text-ui-fg-disabled !bg-ui-bg-disabled !border-ui-border-base placeholder-ui-fg-disabled cursor-not-allowed !shadow-none":
Expand All @@ -81,7 +81,7 @@ const CurrencyInput = React.forwardRef<HTMLInputElement, CurrencyInputProps>(
)}
>
<span
className={clx("w-fit flex-[0_0_auto]", {
className={clx("w-fit", {
"py-[9px]": size === "base",
"py-[5px]": size === "small",
})}
Expand All @@ -92,14 +92,14 @@ const CurrencyInput = React.forwardRef<HTMLInputElement, CurrencyInputProps>(
</Text>
</span>
<Primitive
className="h-full flex-1 appearance-none bg-transparent text-right outline-none"
className="h-full min-w-0 flex-1 appearance-none bg-transparent text-right outline-none"
disabled={disabled}
onInvalid={onInnerInvalid}
ref={innerRef}
{...props}
/>
<span
className={clx("flex-[0_0_16px] text-right", {
className={clx("w-fit min-w-[16px] text-right", {
"py-[9px]": size === "base",
"py-[5px]": size === "small",
})}
Expand Down

0 comments on commit 499b23b

Please sign in to comment.