Skip to content

Commit

Permalink
🐛 Fix divider position
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinmagrez committed Jul 17, 2024
1 parent 8e8519e commit aa306ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export const Divider = ({ style, orientation = 'horizontal', dashed = false }: D
stroke={styles.line.color}
strokeWidth={strokeWidth}
strokeDasharray={`5, ${dashed ? '3' : '0'}`}
x1={isRow ? 0 : paddingLeft + computedWidth / 2}
y1={isRow ? paddingTop + computedHeight / 2 : 0}
x2={isRow ? lineLength : paddingLeft + computedWidth / 2}
y2={isRow ? paddingTop + computedHeight / 2 : lineLength}
x1={isRow ? 0 : paddingLeft + strokeWidth / 2}
y1={isRow ? paddingTop + strokeWidth / 2 : 0}
x2={isRow ? lineLength : paddingLeft + strokeWidth / 2}
y2={isRow ? paddingTop + strokeWidth / 2 : lineLength}
/>
</Svg.Svg>
);
Expand Down

0 comments on commit aa306ab

Please sign in to comment.