impr: improve design consistency/rounding
This commit is contained in:
10 files changed
+65
-38
No files matched your search
@@ -65,17 +65,21 @@
|
||||
{alt}
|
||||
{width}
|
||||
{title}
|
||||
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
|
||||
class={[
|
||||
'aspect-square object-cover overflow-hidden shrink-0',
|
||||
circle ? 'rounded-full' : 'rounded-lg',
|
||||
clazz,
|
||||
]}
|
||||
style="width: {width}px; height: {width}px; {style}"
|
||||
class:rounded-full={circle}
|
||||
class:rounded-md={!circle}
|
||||
/>
|
||||
{:else}
|
||||
<div
|
||||
style="width: {width}px; height: {width}px;"
|
||||
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
|
||||
class:rounded-full={circle}
|
||||
class:rounded-md={!circle}
|
||||
class={[
|
||||
'aspect-square object-cover overflow-hidden shrink-0',
|
||||
circle ? 'rounded-full' : 'rounded-lg',
|
||||
clazz,
|
||||
]}
|
||||
>
|
||||
{@html createAvatar(initials, {
|
||||
seed: alt,
|
||||
|
||||
Reference in new issue
Block a user