Skip to content

Commit

Permalink
fix(fix the offset problem when the divider is vertical): remove tran…
Browse files Browse the repository at this point in the history
…sformY,use align-items: center

affects: @varlet/ui
  • Loading branch information
祁益韜 authored and haoziqaq committed Dec 10, 2021
1 parent a6cd0d7 commit 5b10f08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion packages/varlet-ui/src/divider/divider.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
padding: var(--divider-text-margin);
border-top: none;
border-left: 1px solid var(--divider-color);
transform: translateY(-10%);
}

&--inset {
Expand Down
4 changes: 1 addition & 3 deletions packages/varlet-ui/src/divider/example/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default {
setup() {
watchLang(use)
watchDarkMode(dark)
return {
pack,
}
Expand All @@ -65,9 +64,8 @@ export default {
.vertical-divider-wrapper {
display: flex;
justify-content: center;
align-items: center;
color: #333;
height: 36px;
line-height: 36px;
span {
font-size: 14px;
Expand Down

0 comments on commit 5b10f08

Please sign in to comment.