Skip to content

Commit

Permalink
fix: use rem based font size for more predictable results
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Sep 19, 2024
1 parent e38c7f5 commit fb90831
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export const TxInputCoin = createComponent<
</Badge>

<Flex className="w-full items-start tablet:items-center flex flex-col tablet:flex-row gap-2 tablet:gap-4">
<AssetItem assetId={assetId} className="flex-1" prefix="Asset:">
<AssetItem
assetId={assetId}
className="flex-1 text-sm"
prefix="Asset:"
>
<Address
prefix="From:"
value={input.owner || ''}
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/components/Address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const AddressSpan = ({
short: string;
className?: string;
}) => {
const baseClass = cx(['text-[1em]', className]);
const baseClass = cx(['text-sm', className]);
return (
<>
{full && (
Expand Down Expand Up @@ -96,7 +96,7 @@ export const Address = createComponent<AddressProps, 'div'>({
{linkProps ? (
<Link
{...linkProps}
className={cx('text-xs text-[1em]')}
className={cx('text-xs text-sm')}
onClick={(e) => {
e.stopPropagation();
}}
Expand Down Expand Up @@ -128,7 +128,7 @@ export const Address = createComponent<AddressProps, 'div'>({
const styles = tv({
slots: {
root: 'flex gap-1 text-sm font-mono',
prefix: 'mr-px text-[1em] text-secondary',
address: 'text-[1em] text-muted mt-px gap-3',
prefix: 'mr-px text-sm text-secondary',
address: 'text-sm text-muted mt-px gap-3',
},
});

0 comments on commit fb90831

Please sign in to comment.