Skip to content

Commit e963d64

Browse files
committed
fix: update icon class binding in NqCard component for improved styling
1 parent 8da4959 commit e963d64

File tree

1 file changed

+1
-1
lines changed
  • packages/nimiq-vitepress-theme/src/components

1 file changed

+1
-1
lines changed

packages/nimiq-vitepress-theme/src/components/NqCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const colors: Partial<Record<CardColor, string>> = { blue: '#0E65C9', green: '#1
3535
{ 'children:max-w-[max(50%,240px)]': bgColor },
3636
]"
3737
>
38-
<div v-if="icon" :class="`${icon} ${iconClass}`" f-size="~ max-160 min-120" absolute right--12 :style="`color: ${colors[bgColor!]}`" />
38+
<div v-if="icon" :class="[`${icon} ${iconClass}`, iconClass ? iconClass : 'f-size-120/160 absolute right--12']" :style="`color: ${colors[bgColor!]}`" />
3939
<span nq-label text-12 mb-4 text="neutral-700 data-inverted:white/50" data-inverted:mb-8>{{ label }}</span>
4040
<h2 font-semibold f-text="xl data-inverted:2xl" data-inverted:text-white>
4141
{{ title }}

0 commit comments

Comments
 (0)