fix(Avatar): truncate placeholder if too long (#61)

This commit is contained in:
Sylvain Marroufin
2022-06-07 16:49:13 +02:00
committed by GitHub
parent b05aa48caa
commit 6585bfc24a

View File

@@ -322,7 +322,7 @@ const pills = {
const avatar = {
wrapper: 'relative inline-flex items-center justify-center',
background: 'u-bg-gray-100',
placeholder: 'text-xs font-medium leading-none u-text-black',
placeholder: 'text-xs font-medium leading-none u-text-black truncate',
size: {
xxxs: 'h-4 w-4 text-xs',
xxs: 'h-5 w-5 text-xs',