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 01db60162c
commit 40f2bed090
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)});"
/>
{: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}
</div>
{/if}
@ -42,5 +46,6 @@
rgba(53, 199, 86, 1) 47%
);
border-radius: 50%;
overflow: hidden;
}
</style>