Skip to content

Commit

Permalink
Ability to customize arrow width
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Aug 23, 2022
1 parent c3e9618 commit 68bc059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stretchy.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function resize (element) {

if (!cs[appearance] || cs[appearance] !== "none") {
// Account for arrow
element.style.width = "calc(" + element.style.width + " + 2.1em)";
element.style.width = "calc(" + element.style.width + " + var(--arrow-width, 2.1em))";
}
}

Expand Down

0 comments on commit 68bc059

Please sign in to comment.