Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix p-divider sometimes has 0 width. #1125

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this w-full on the root element is the fix.

}

.p-divider__line { @apply
border-none
h-[1px]
bg-divider
Expand Down
Loading