Skip to content

Commit ac5a8c2

Browse files
committed
fix: refactor NqHeadline component for improved layout and class binding consistency
1 parent 178340d commit ac5a8c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ const description = computed(() => userDescription || frontmatter.value.descript
2222
</script>
2323

2424
<template>
25-
<div flex="~ col" :class="align === 'left' ? 'items-start' : 'items-center'" class="nq-raw" f-my-2xl>
25+
<div
26+
flex="~ col" nq-component="headline"
27+
:class="{ 'items-start': align === 'left',
28+
'items-center': align === 'center',
29+
'f-mt-2xl': !h1 }" class="nq-raw"
30+
f-mb-2xl
31+
>
2632
<div
2733
v-if="label" outline="~ 1.5 neutral-600" bg="neutral/3" px-12 py-6 rounded-full nq-label
2834
:class="align === 'left' ? 'text-left' : 'text-center'"

0 commit comments

Comments
 (0)