Skip to content

Commit

Permalink
fix: padding of toggle button (#9024)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flrande committed Dec 19, 2024
1 parent 5605b1a commit ad60edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ToggleButton extends WithDisposable(ShadowlessElement) {
.toggle-icon {
display: flex;
align-items: start;
margin-top: 0.3em;
margin-top: 0.45em;
position: absolute;
left: 0;
transform: translateX(-100%);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class PointerEventWatcher {
const scaleInNote = this.widget.scaleInNote.value;

const rowPaddingY =
((containerHeight - DRAG_HANDLE_GRABBER_HEIGHT) / 2) * scaleInNote;
((containerHeight - DRAG_HANDLE_GRABBER_HEIGHT) / 2 + 2) * scaleInNote;

// use padding to control grabber's height
const paddingTop = rowPaddingY + posTop - draggingAreaRect.top;
Expand Down

0 comments on commit ad60edf

Please sign in to comment.