Skip to content

Commit

Permalink
Fix p-divider sometimes has 0 width.
Browse files Browse the repository at this point in the history
  • Loading branch information
collincchoy committed Feb 26, 2024
1 parent 7303dae commit 9a8e830
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/Divider/PDivider.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
<template>
<div class="flex items-center gap-x-2">
<hr class="p-divider">
<div class="p-divider">
<hr class="p-divider__line">

<template v-if="$slots.default">
<div class="p-divider__text">
<slot />
</div>
<hr class="p-divider">
<hr class="p-divider__line">
</template>
</div>
</template>

<style>
.p-divider { @apply
flex
items-center
gap-x-2
w-full
}
.p-divider__line { @apply
border-none
h-[1px]
bg-divider
Expand Down

0 comments on commit 9a8e830

Please sign in to comment.