adjust font-size with size on Avatar component

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 10:44:50 +02:00
parent f283e2b0f5
commit 1efea8c869
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,11 @@
style="width: var({sizes.get(size)}); height: var({sizes.get(size)});" style="width: var({sizes.get(size)}); height: var({sizes.get(size)});"
/> />
{:else} {:else}
<div style="width: var({sizes.get(size)}); height: var({sizes.get(size)});"> <div
style="width: var({sizes.get(size)}); height: var({sizes.get(
size
)}); font-size: calc(var({sizes.get(size)}) / 2)"
>
{initials} {initials}
</div> </div>
{/if} {/if}
@ -42,5 +46,6 @@
rgba(53, 199, 86, 1) 47% rgba(53, 199, 86, 1) 47%
); );
border-radius: 50%; border-radius: 50%;
overflow: hidden;
} }
</style> </style>