Skip to content

Commit 0bfd2cd

Browse files
committed
refactor: Remove unnecessary knob bottom margin
1 parent 932db75 commit 0bfd2cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ColorPicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@
351351
/*
352352
* "2.5%" adds distance from the top edge of the rotator to center the knob inside the gradient ring
353353
* "auto" centers the knob horizontally inside the rotator plane
354-
* the bottom value of 0 is added just to levarage the margin shorthand syntax
355354
*/
356-
margin: 2.5% auto 0;
355+
margin-top: 2.5%;
356+
margin-inline: auto;
357357
358358
background-color: #fff;
359359
transition: transform 0.4s cubic-bezier(0.35, 0, 0.25, 1);

0 commit comments

Comments
 (0)