Skip to content

Commit

Permalink
Merge pull request #1125 from PrefectHQ/fix/p-divider-not-always-stre…
Browse files Browse the repository at this point in the history
…tching

Fix p-divider sometimes has 0 width.
  • Loading branch information
collincchoy authored Feb 27, 2024
2 parents 7303dae + 9a8e830 commit cadb3d2
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 cadb3d2

Please sign in to comment.