Skip to content

Commit

Permalink
feat: create xs size at PAvatar
Browse files Browse the repository at this point in the history
Signed-off-by: NaYeong,Kim <[email protected]>
  • Loading branch information
skdud4659 committed Dec 10, 2024
1 parent 9593a33 commit 6d0145e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mirinae/src/data-display/avatar/PAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const state = reactive({
.icon-wrapper {
@apply text-white;
&.avatar-xs {
padding: 0.125rem;
}
&.avatar-sm, &.avatar-md {
padding: 0.25rem;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/mirinae/src/data-display/avatar/type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { indigo } from '@/styles/colors.cjs';

export const AVATAR_SIZE = {
XS: 'xs',
SM: 'sm',
MD: 'md',
XL: 'xl',
Expand All @@ -12,6 +13,7 @@ export const AVATAR_COLOR = {
} as const;

export const ICON_SIZE: Record<SizeType, string> = {
xs: '1rem',
sm: '1.5rem',
md: '1.75rem',
xl: '4rem',
Expand Down

0 comments on commit 6d0145e

Please sign in to comment.