Skip to content

Commit

Permalink
fix(Avatar): placeholder font size
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 1, 2023
1 parent f9b935f commit 71edb91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/content/2.elements/1.avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ If there's an `alt` prop initials will be displayed on top of the background, cu
---
props:
alt: 'Benjamin Canac'
size: 'sm'
---
::

Expand Down
20 changes: 10 additions & 10 deletions src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ const avatar = {
wrapper: 'relative inline-flex items-center justify-center',
background: 'bg-gray-100 dark:bg-gray-800',
rounded: 'rounded-full',
placeholder: 'text-xs font-medium leading-none text-gray-900 dark:text-white truncate',
placeholder: 'font-medium leading-none text-gray-900 dark:text-white truncate',
size: {
'3xs': 'h-4 w-4 text-xs',
'2xs': 'h-5 w-5 text-xs',
xs: 'h-6 w-6 text-xs',
sm: 'h-8 w-8 text-sm',
md: 'h-10 w-10 text-md',
lg: 'h-12 w-12 text-lg',
xl: 'h-14 w-14 text-xl',
'2xl': 'h-16 w-16 text-2xl',
'3xl': 'h-20 w-20 text-3xl'
'3xs': 'h-4 w-4 text-[8px]',
'2xs': 'h-5 w-5 text-[10px]',
xs: 'h-6 w-6 text-[11px]',
sm: 'h-8 w-8 text-xs',
md: 'h-10 w-10 text-sm',
lg: 'h-12 w-12 text-base',
xl: 'h-14 w-14 text-lg',
'2xl': 'h-16 w-16 text-xl',
'3xl': 'h-20 w-20 text-2xl'
},
chip: {
base: 'absolute block rounded-full ring-1 ring-white dark:ring-gray-900',
Expand Down

1 comment on commit 71edb91

@vercel
Copy link

@vercel vercel bot commented on 71edb91 Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui.nuxtlabs.com
ui-nuxtlabs.vercel.app
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.