Skip to content

Commit

Permalink
safer label paddingInline removal
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentpayot committed Jun 20, 2023
1 parent 94fced1 commit 64ab80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdn/beer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default (() => {

if (toActive) {
if (isBorder && label) {
label.style.paddingInline = "unset"
label.style.paddingInline = "0px"
const labelWidth = textWidth(label, "0.75rem Arial");
let width = hasClass(label, "active") ? labelWidth : Math.round(labelWidth / 1.33);
width = width / 16;
Expand Down

0 comments on commit 64ab80e

Please sign in to comment.