Skip to content

Commit

Permalink
fix(Stepper): fix stepper divider not draw line
Browse files Browse the repository at this point in the history
fix: #194
  • Loading branch information
gravitano committed Apr 15, 2024
1 parent 7840963 commit f32be03
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/steppers/src/StepperDivider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ defineProps<{
<template>
<div
v-if="vertical"
class="absolute z-1 top-8 left-4 transform translate-y-[1px] stepper-divider-vertical w-[1px] h-full"
:class="isActive ? 'border-l-4 border-blue-300 -translate-x-[2px]' : 'border-l-2 border-gray-300 -translate-x-[1px]'"
class="absolute z-1 top-8 left-4 transform translate-y-[1px] stepper-divider-vertical w-[1px] h-full"
:class="
isActive
? 'border-l-4 border-blue-300 -translate-x-[2px]'
: 'border-l-2 border-gray-300 -translate-x-[1px]'
"
/>
<div
v-else
class="absolute z-1 top-4 left-0 transform -translate-x-1/2 flex align-center items-center align-middle content-center stepper-divider h-[1px]"
:class="isActive ? 'border-b-4 border-blue-300' : 'border-b-2 border-gray-300'"
class="absolute z-1 top-4 left-0 transform -translate-x-1/2 flex align-center items-center align-middle content-center stepper-divider w-[calc(100%-2rem)] h-[1px]"
:class="
isActive ? 'border-b-4 border-blue-300' : 'border-b-2 border-gray-300'
"
/>
</template>

<style scoped>
.stepper-divider {
width: calc(100% - 2rem);
}
</style>

0 comments on commit f32be03

Please sign in to comment.