Skip to content

Commit

Permalink
Add mnin margin to buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosilva-pt committed Dec 21, 2023
1 parent c8ee628 commit e04f76d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ export class ApmButtons {
return true;
}

const minMargin = 11; // Minimum margin.
const height = $el.height();
$el.css('margin-top', `${Math.round(height * 0.3)}px`);
const margin = Math.max(minMargin, Math.round(height * 0.3));
$el.css('margin-top', `${margin}px`);
});

}
Expand Down

0 comments on commit e04f76d

Please sign in to comment.