Skip to content

Commit

Permalink
Merge pull request #29 from bleu/review-claim-vesting
Browse files Browse the repository at this point in the history
Create vesting: fix font sizes in mobile
  • Loading branch information
JeanNeiverth authored Oct 9, 2024
2 parents 490e2c0 + f37b071 commit ca9c48e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions apps/claim-vesting/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ module.exports = {
fontFamily: {
"inter-sans": '"Inter var", sans-serif',
},
screens: {
xsm: "420px",
},
},
},
plugins: [],
Expand Down
9 changes: 6 additions & 3 deletions packages/cow-hooks-ui/src/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ export const AddressInput: React.FC<AddressInputProps> = ({
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
}) => (
<div className="flex flex-col w-full">
<label htmlFor="addressInput" className="text-start text-sm ml-2 my-2.5">
<label
htmlFor="addressInput"
className="text-start text-xs xsm:text-sm ml-2 my-2.5"
>
{label}
</label>
<input
id="addressInput"
type="text"
placeholder="0xabc..."
onChange={onChange}
className="w-full mt-0 p-2.5 rounded-xl outline-none text-color-text-paper border-none bg-color-paper-darker focus:border-primary"
className="w-full mt-0 p-2.5 rounded-xl outline-none text-xs xsm:text-base text-color-text-paper border-none bg-color-paper-darker focus:border-primary"
{...props}
/>
<span className="text-red-700 text-sm text-start ml-2.5 mt-1">
<span className="text-red-700 text-xs xsm:text-sm text-start ml-2.5 mt-1">
{errorMessage}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/cow-hooks-ui/src/ButtonPrimary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ButtonPrimary: React.FC<
> = ({ children, disabled = false, ...props }) => (
<button
className={cn(
"flex flex-row flex-wrap items-center justify-center text-lg font-semibold font-inter-sans border-none shadow-none rounded-2xl relative min-h-[58px] mt-2 mb-2",
"flex flex-row flex-wrap items-center justify-center text-sm font-semibold font-inter-sans border-none shadow-none rounded-2xl relative min-h-[58px] mt-2 mb-2 xsm:text-lg",
{
"bg-color-primary text-color-button-text transition-colors duration-200 ease-in-out focus:shadow-none focus:transform-none focus:bg-color-primary-lighter hover:shadow-none hover:transform-none hover:bg-color-primary-lighter active:shadow-none active:transform-none active:bg-color-primary-lighter":
!disabled,
Expand Down
2 changes: 1 addition & 1 deletion packages/cow-hooks-ui/src/ClaimableAmountContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const ClaimableAmountContainer = ({
children?: ReactNode;
}) => (
<div
className="flex justify-between items-center bg-color-paper-darker p-3 my-4 rounded-xl"
className="flex justify-between items-center bg-color-paper-darker p-3 my-4 rounded-xl text-xs xsm:text-base"
{...props}
>
{children}
Expand Down

0 comments on commit ca9c48e

Please sign in to comment.